hedgewars/hwengine.dpr
changeset 205 8d9aff55e6ab
parent 200 a36102728776
child 208 a049157d673a
--- a/hedgewars/hwengine.dpr	Wed Oct 25 19:41:14 2006 +0000
+++ b/hedgewars/hwengine.dpr	Thu Oct 26 16:08:29 2006 +0000
@@ -199,6 +199,7 @@
 
 ///////////////
 procedure Game;
+var s: shortstring;
 begin
 WriteToConsole('Init SDL... ');
 SDLTry(SDL_Init(SDL_INIT_VIDEO) >= 0, true);
@@ -217,6 +218,10 @@
 LoadLocale(Pathz[ptLocale] + '/' + cLocaleFName);
 
 SendIPCAndWaitReply('C');        // ask for game config
+
+s:= 'eproto ' + inttostr(cNetProtoVersion);
+SendIPCRaw(@s[0], Length(s) + 1); // send proto version
+
 InitTeams;
 
 if isSoundEnabled then InitSound;
@@ -254,7 +259,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 begin
-WriteLnToConsole('-= HedgeWars 0.2 =-');
+WriteLnToConsole('-= HedgeWars 0.8 =-');
 WriteLnToConsole('  -= by unC0Rr =-  ');
 GetParams;
 Randomize;