mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-02-01 21:55:01 +01:00
Negate edentity room check and use a continue
This reduces the brace level by one, meaning the indentation level is no longer semi-misleading.
This commit is contained in:
parent
264279d17a
commit
8b8f9b3389
1 changed files with 4 additions and 2 deletions
|
@ -1682,7 +1682,10 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
//If entity is in this room, create it
|
||||
int tsx=(edentity[edi].x-(edentity[edi].x%40))/40;
|
||||
int tsy=(edentity[edi].y-(edentity[edi].y%30))/30;
|
||||
if(tsx==rx-100 && tsy==ry-100){
|
||||
if (tsx != rx-100 || tsy != ry-100)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
switch(edentity[edi].t){
|
||||
case 1: //Enemies
|
||||
int bx1, by1, bx2, by2;
|
||||
|
@ -1795,7 +1798,6 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//do the appear/remove roomname here
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue