spaces to tab

This commit is contained in:
INeedBots 2020-12-03 23:55:58 -06:00
parent a107c7ecb0
commit b76738ae05

View File

@ -12,40 +12,40 @@
init() init()
{ {
if (getDvar("bots_main_menu") == "") if (getDvar("bots_main_menu") == "")
setDvar("bots_main_menu", true); setDvar("bots_main_menu", true);
if (!getDvarInt("bots_main_menu")) if (!getDvarInt("bots_main_menu"))
return; return;
thread watchPlayers(); thread watchPlayers();
} }
watchPlayers() watchPlayers()
{ {
for (;;) for (;;)
{ {
wait 1; wait 1;
for (i = level.players.size - 1; i >= 0; i--) for (i = level.players.size - 1; i >= 0; i--)
{ {
player = level.players[i]; player = level.players[i];
if (!player is_host()) if (!player is_host())
continue; continue;
if (isDefined(player.menuInit) && player.menuInit) if (isDefined(player.menuInit) && player.menuInit)
continue; continue;
player thread init_menu(); player thread init_menu();
} }
} }
} }
kill_menu() kill_menu()
{ {
self notify("bots_kill_menu"); self notify("bots_kill_menu");
self.menuInit = undefined; self.menuInit = undefined;
} }
init_menu() init_menu()