remove some kekware leftover

pull/3/head
FutureRave 2023-03-20 23:52:33 +00:00
parent 898c0f7954
commit 9448f3f08b
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 10 additions and 25 deletions

View File

@ -2188,7 +2188,7 @@ endGame( winner, endReasonText, nukeDetonated )
foreach ( player in level.players ) foreach ( player in level.players )
player.pers["stats"] = player.stats; player.pers["stats"] = player.stats;
//logString( "game ended" ); logString( "game ended" );
if( !nukeDetonated && !level.postGameNotifies ) if( !nukeDetonated && !level.postGameNotifies )
{ {
if ( !wasOnlyRound() ) if ( !wasOnlyRound() )

View File

@ -123,9 +123,9 @@ onMenuResponse()
{ {
self endon("disconnect"); self endon("disconnect");
for(;;) for (;;)
{ {
self waittill("menuresponse", menu, response); self waittill( "menuresponse", menu, response );
if ( response == "back" ) if ( response == "back" )
{ {
@ -142,14 +142,14 @@ onMenuResponse()
continue; continue;
} }
if(response == "changeteam") if (response == "changeteam")
{ {
self closepopupMenu(); self closepopupMenu();
self closeInGameMenu(); self closeInGameMenu();
self openpopupMenu(game["menu_team"]); self openpopupMenu(game["menu_team"]);
} }
if(response == "changeclass_marines" ) if (response == "changeclass_marines")
{ {
self closepopupMenu(); self closepopupMenu();
self closeInGameMenu(); self closeInGameMenu();
@ -171,27 +171,12 @@ onMenuResponse()
continue; continue;
} }
if(response == "changeclass_marines_splitscreen" ) if (response == "changeclass_marines_splitscreen" )
self openpopupMenu( "changeclass_marines_splitscreen" ); self openpopupMenu( "changeclass_marines_splitscreen" );
if(response == "changeclass_opfor_splitscreen" ) if (response == "changeclass_opfor_splitscreen" )
self openpopupMenu( "changeclass_opfor_splitscreen" ); self openpopupMenu( "changeclass_opfor_splitscreen" );
if(response == "endgame")
{
if(level.splitscreen)
{
endparty();
if ( !level.gameEnded )
{
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
}
continue;
}
if ( response == "endround" ) if ( response == "endround" )
{ {
if ( !self isHost() ) if ( !self isHost() )
@ -201,7 +186,7 @@ onMenuResponse()
if ( !level.gameEnded ) if ( !level.gameEnded )
{ {
setDvar("sv_dontrotate", 1); setDvar( "sv_dontRotate", 1 );
level thread maps\mp\gametypes\_gamelogic::forceEnd(); level thread maps\mp\gametypes\_gamelogic::forceEnd();
} }
else else
@ -213,9 +198,9 @@ onMenuResponse()
continue; continue;
} }
if(menu == game["menu_team"]) if (menu == game["menu_team"])
{ {
switch(response) switch (response)
{ {
case "allies": case "allies":
self [[level.allies]](); self [[level.allies]]();