Simplified instruction pointer delta handling
This commit is contained in:
parent
11dac6494d
commit
270a3845cd
4 changed files with 12 additions and 19 deletions
|
@ -5,7 +5,7 @@ func (p Pointer) GetStorageOffset() (x, y int) {
|
|||
}
|
||||
|
||||
func (p *Pointer) CalculateNewStorageOffset() {
|
||||
p.sox, p.soy = p.x+p.delta.x, p.y+p.delta.y
|
||||
p.sox, p.soy = p.x+p.dx, p.y+p.dy
|
||||
}
|
||||
|
||||
func (p *Pointer) SetStorageOffset(x, y int) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue