minor change to raycast
This commit is contained in:
parent
48e1ff0475
commit
9a86ae4479
@ -102,7 +102,7 @@ void castRay(s16 angle){
|
||||
while(dof<8){
|
||||
mx = fix16ToInt(rx) / 10;
|
||||
my = fix16ToInt(ry) / 10;
|
||||
if(mx >=0 && my >= 0 && mx < 10 && my < 10 && map[my][mx] == 1){
|
||||
if(mx < 10 && my < 10 && map[my][mx] == 1){
|
||||
dof = 8;
|
||||
vx = rx;
|
||||
vy = ry;
|
||||
|
Loading…
Reference in New Issue
Block a user