]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
battle royale: removed emulated round handler entity
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 10 Jun 2023 00:31:12 +0000 (02:31 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 10 Jun 2023 00:31:12 +0000 (02:31 +0200)
qcsrc/common/gamemodes/gamemode/br/sv_br.qc

index e0729b91bedd2020cc3405bdaa312f53dddaaa5d..09abdd58f79bfd7d53ff561a331bf3b5fa66603e 100644 (file)
@@ -1436,22 +1436,12 @@ void br_Start(){
     });
 
     br_event_supply_time = br_event_vehicle_time = time;
-    round_handler.cnt = 0; // emulate round handler round start
 }
 
-void br_dummy_Think(entity this){}
-
 void br_Initialize()
 {
     br_started = false;
     squads_colored = autocvar_g_br_squad_colors;
 
-    // emulate the round handler, useful because this will cause a lot of code to correctly treat the stage before the match starts
-    round_handler = new_pure(round_handler);
-    round_handler.count = 0;
-    round_handler.cnt = 1;
-    round_handler.wait = false;
-    setthink(round_handler, br_dummy_Think);
-
     EliminatedPlayers_Init(br_isEliminated);
 }