--- 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;