mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Fix misleading indentation in obj.customwarpmode block
This misleading indentation makes it really easy to misanalyze this block as only containing the statements up to obj.customwarplinecheck(), when in reality it contains everything up to the modifying of map.warpx/map.warpy. I have made this misanalysis just now in my attempt to figure out the pre-2.1 warp line bypass glitch, and I don't like it. So I'm fixing this indentation now.
This commit is contained in:
parent
b7cf6855b0
commit
23434f0842
1 changed files with 7 additions and 7 deletions
|
@ -1030,14 +1030,14 @@ void gamelogic()
|
||||||
|
|
||||||
int i = obj.getplayer();
|
int i = obj.getplayer();
|
||||||
if (i > -1 && ((game.door_down > -2 && obj.entities[i].yp >= 226-16) || (game.door_up > -2 && obj.entities[i].yp < -2+16) || (game.door_left > -2 && obj.entities[i].xp < -14+16) || (game.door_right > -2 && obj.entities[i].xp >= 308-16))){
|
if (i > -1 && ((game.door_down > -2 && obj.entities[i].yp >= 226-16) || (game.door_up > -2 && obj.entities[i].yp < -2+16) || (game.door_left > -2 && obj.entities[i].xp < -14+16) || (game.door_right > -2 && obj.entities[i].xp >= 308-16))){
|
||||||
//Player is leaving room
|
//Player is leaving room
|
||||||
obj.customwarplinecheck(i);
|
obj.customwarplinecheck(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(obj.customwarpmodehon){ map.warpy=true;
|
if(obj.customwarpmodehon){ map.warpy=true;
|
||||||
}else{ map.warpy=false; }
|
}else{ map.warpy=false; }
|
||||||
if(obj.customwarpmodevon){ map.warpx=true;
|
if(obj.customwarpmodevon){ map.warpx=true;
|
||||||
}else{ map.warpx=false; }
|
}else{ map.warpx=false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
//Finally: Are we changing room?
|
//Finally: Are we changing room?
|
||||||
|
|
Loading…
Reference in a new issue