summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0cdc0bc)
raw | patch | inline | side by side (parent: 0cdc0bc)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Wed, 26 Apr 2023 09:37:57 +0000 (12:37 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Wed, 26 Apr 2023 09:37:57 +0000 (12:37 +0300) |
src/game/g_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index b8c69a1cf396b26dd41d88dd9625393cd6b2afdf..4f6f82a0066413bcc989c3d57d915c0add00b696 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
function g_Game_IsNet(): Boolean;
begin
Result := (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]);
+
+ if gGameSettings.GameType in [GT_SERVER, GT_CLIENT] then
+ begin
+ // set debug options to false to avoid cheaters
+ g_debug_Sounds := False;
+ g_debug_Frames := False;
+ g_debug_WinMsgs := False;
+ g_debug_MonsterOff := False;
+ g_debug_BotAIOff := 0;
+ g_debug_HealthBar := False;
+ g_Debug_Player := False;
+ Exit;
+ end;
end;
function g_Game_IsServer(): Boolean;
// Óñòàíîâêà ðàçìåðîâ îêîí èãðîêîâ:
g_Game_SetupScreenSize();
-// set debug options to false to avoid cheaters
- g_debug_Sounds := False;
- g_debug_Frames := False;
- g_debug_WinMsgs := False;
- g_debug_MonsterOff := False;
- g_debug_BotAIOff := 0;
- g_debug_HealthBar := False;
- g_Debug_Player := False;
-
NetState := NET_STATE_AUTH;
g_Game_SetLoadingText(_lc[I_LOAD_CONNECT], 0, False);