DEADSOFTWARE

Holmes, please, there are no criminals in dedicated server!
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 31 Aug 2017 12:34:34 +0000 (15:34 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 31 Aug 2017 12:35:16 +0000 (15:35 +0300)
src/game/g_holmes.pas
src/game/g_window.pas

index 6b623f011a154993d94052f35847ec89ca8c7f22..8c4b111d40c6607549ed3c9d29d84dc7d49da04f 100644 (file)
@@ -1035,6 +1035,7 @@ end;
 // ////////////////////////////////////////////////////////////////////////// //
 procedure g_Holmes_Draw ();
 begin
+  {$IF not DEFINED(HEADLESS)}
   holmesInitCommands();
   holmesInitBinds();
 
@@ -1048,6 +1049,7 @@ begin
   begin
     plrDebugDraw();
   end;
+  {$ENDIF}
 
   laserSet := false;
 end;
@@ -1055,8 +1057,10 @@ end;
 
 procedure g_Holmes_DrawUI ();
 begin
+  {$IF not DEFINED(HEADLESS)}
   uiDraw();
   drawCursor();
+  {$ENDIF}
 end;
 
 
index 226c4550c73fc5c7758048d1c94ab03da677c896..0ac570dad8b00a296278d4e0163f19ee28785b72 100644 (file)
@@ -452,16 +452,19 @@ begin
           kbev.sym := ev.key.keysym.sym;
           kbev.bstate := curMsButState;
           kbev.kstate := curKbState;
+          {$IF not DEFINED(HEADLESS)}
           if g_Holmes_keyEvent(kbev) then
           begin
             if (ev.type_ <> SDL_KEYDOWN) then e_KeyUpDown(ev.key.keysym.scancode, false);
             exit;
           end;
+          {$ENDIF}
         end;
         if (ev.type_ = SDL_KEYDOWN) then KeyPress(key);
         e_KeyUpDown(ev.key.keysym.scancode, (ev.type_ = SDL_KEYDOWN));
       end;
 
+    {$IF not DEFINED(HEADLESS)}
     SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP:
       begin
         msev.dx := ev.button.x-curMsX;
@@ -510,6 +513,7 @@ begin
         msev.kstate := curKbState;
         if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);
       end;
+    {$ENDIF}
 
     SDL_TEXTINPUT:
       begin