We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ddf884 commit 2f6e72cCopy full SHA for 2f6e72c
1 file changed
src/player.c
@@ -150,7 +150,7 @@ bool PlayerIsColliding(Player p) {
150
151
// Try collision at 8 points around player.
152
for (int angle = 0; angle < 360; angle+=45) {
153
- colliding = colliding || isColliding((int) (p->posX + 10*cos(p->rotation + angle*DEG2RAD)), (int) (p->posY + 10*sin(p->rotation + angle*DEG2RAD), p->map));
+ colliding = colliding || isColliding((int) (p->posX + 10*cos(p->rotation + angle*DEG2RAD)), (int) (p->posY + 10*sin(p->rotation + angle*DEG2RAD)), p->map);
154
}
155
return colliding;
156
0 commit comments