mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Simplify GAMEMODE loop
Now that towers no longer use separate functions, we can remove the map.towermode conditional.
This commit is contained in:
@@ -422,25 +422,14 @@ int main(int argc, char *argv[])
|
||||
titlelogic();
|
||||
break;
|
||||
case GAMEMODE:
|
||||
if (map.towermode)
|
||||
if (script.running)
|
||||
{
|
||||
gameinput();
|
||||
gamerender();
|
||||
gamelogic();
|
||||
|
||||
script.run();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (script.running)
|
||||
{
|
||||
script.run();
|
||||
}
|
||||
|
||||
gameinput();
|
||||
gamerender();
|
||||
gamelogic();
|
||||
}
|
||||
gameinput();
|
||||
gamerender();
|
||||
gamelogic();
|
||||
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user