Simplified instruction pointer delta handling

This commit is contained in:
Julien Dessaux 2021-09-21 15:41:52 +02:00
parent 11dac6494d
commit 270a3845cd
4 changed files with 12 additions and 19 deletions

View file

@ -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) {