--- a/hedgewars/uCommandHandlers.pas Thu Jan 13 04:25:20 2011 +0100
+++ b/hedgewars/uCommandHandlers.pas Fri Jan 14 00:31:21 2011 +0100
@@ -32,6 +32,13 @@
GameState:= prevGState
end;
+procedure chForceQuit(var s: shortstring);
+begin
+ s:= s; // avoid compiler hint
+ SendIPC('Q');
+ GameState:= gsExit
+end;
+
procedure chConfirm(var s: shortstring);
begin
s:= s; // avoid compiler hint
@@ -582,6 +589,7 @@
RegisterVariable('grave' , vtCommand, @chGrave , false);
RegisterVariable('hat' , vtCommand, @chSetHat , false);
RegisterVariable('quit' , vtCommand, @chQuit , true );
+ RegisterVariable('forcequit', vtCommand, @chForceQuit , true );
RegisterVariable('confirm' , vtCommand, @chConfirm , true );
RegisterVariable('+speedup', vtCommand, @chSpeedup_p , true );
RegisterVariable('-speedup', vtCommand, @chSpeedup_m , true );