aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/storage-offset.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-21 15:41:52 +0200
committerJulien Dessaux2021-09-21 15:41:52 +0200
commit270a3845cdec1baf1bb548e2042d9bbfeeecf153 (patch)
tree8e38500d9618cf4fc3f22d3f61c445b9e2566d62 /pkg/pointer/storage-offset.go
parentBegan implementing the stack and the stack stack (diff)
downloadgofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.tar.gz
gofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.tar.bz2
gofunge98-270a3845cdec1baf1bb548e2042d9bbfeeecf153.zip
Simplified instruction pointer delta handling
Diffstat (limited to '')
-rw-r--r--pkg/pointer/storage-offset.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pointer/storage-offset.go b/pkg/pointer/storage-offset.go
index 0fcd9ed..dc63ee0 100644
--- a/pkg/pointer/storage-offset.go
+++ b/pkg/pointer/storage-offset.go
@@ -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) {