1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Simplify GAMEMODE loop

Now that towers no longer use separate functions, we can remove the
map.towermode conditional.
This commit is contained in:
Misa 2020-04-26 15:19:50 -07:00 committed by Ethan Lee
parent 53bad3bcaf
commit b26e94b919

View file

@ -422,25 +422,14 @@ int main(int argc, char *argv[])
titlelogic(); titlelogic();
break; break;
case GAMEMODE: case GAMEMODE:
if (map.towermode) if (script.running)
{ {
gameinput(); script.run();
gamerender();
gamelogic();
} }
else
{
if (script.running) gameinput();
{ gamerender();
script.run(); gamelogic();
}
gameinput();
gamerender();
gamelogic();
}
break; break;