From: Ketmar Dark Date: Thu, 31 Aug 2017 12:34:34 +0000 (+0300) Subject: Holmes, please, there are no criminals in dedicated server! X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=548d5b03739e16f0cf8d1062ca65e26a2805fc78;p=d2df-sdl.git Holmes, please, there are no criminals in dedicated server! --- diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas index 6b623f0..8c4b111 100644 --- a/src/game/g_holmes.pas +++ b/src/game/g_holmes.pas @@ -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; diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 226c455..0ac570d 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -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