From 84afd0829ce23e9b66b93051ba28f53b43a11e7e Mon Sep 17 00:00:00 2001 From: Rendo Date: Thu, 12 Mar 2026 21:09:56 +0500 Subject: [PATCH] Portal fix --- src/pacman.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pacman.cpp b/src/pacman.cpp index a8985da..9ade9d2 100644 --- a/src/pacman.cpp +++ b/src/pacman.cpp @@ -45,17 +45,17 @@ void Pacman::tick() { } // Bound check - if (this->position.x < 0){ - this->position.x += 320; + if (this->position.x < 16){ + this->position.x += 288; } - if (this->position.y < 0){ - this->position.y += 320; + if (this->position.y < 16){ + this->position.y += 288; } - if (this->position.x >= 320){ - this->position.x -= 320; + if (this->position.x >= 304){ + this->position.x -= 288; } - if (this->position.y >= 320){ - this->position.y -= 320; + if (this->position.y >= 304){ + this->position.y -= 288; } }