hedgewars/CCHandlers.inc
changeset 324 f4c109c82a0c
parent 312 c36d0b34ac3d
child 351 29bc9c36ad5f
--- a/hedgewars/CCHandlers.inc	Sat Jan 13 22:12:30 2007 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Jan 13 22:32:08 2007 +0000
@@ -18,7 +18,7 @@
 
 function CheckNoTeamOrHH: boolean;
 begin
-Result:= (CurrentTeam=nil) or (CurrentTeam.Hedgehogs[CurrentTeam.CurrHedgehog].Gear = nil);
+Result:= (CurrentTeam = nil) or (CurrentTeam.Hedgehogs[CurrentTeam.CurrHedgehog].Gear = nil);
 {$IFDEF DEBUGFILE}
 if Result then
    if CurrentTeam = nil then AddFileLog('CONSOLE: CurTeam = nil')
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 procedure chQuit(var s: shortstring);
 begin
+SendIPC('Q');
 GameState:= gsExit
 end;