summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcd27af)
raw | patch | inline | side by side (parent: dcd27af)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 17 Jan 2022 17:41:55 +0000 (20:41 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 07:54:06 +0000 (10:54 +0300) |
src/game/g_game.pas | patch | blob | history | |
src/game/opengl/r_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 11defaef712db172c478ce77c413ca20cb30725f..473ca90984b1dc77a3cc2c7ca0f0bcc42a753466 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
uses
SysUtils, Classes,
MAPDEF,
- g_base, g_basic, g_player, r_graphics, g_res_downloader,
+ g_base, g_basic, g_player, g_res_downloader,
g_sound, g_gui, utils, md5, mempool, xprofiler,
g_touch, g_weapons;
UPSTime: LongWord;
DataLoaded: Boolean = False;
MessageTime: Word;
- MessageLineLength: Integer = 80;
MapList: SSArray = nil;
MapIndex: Integer = -1;
InterReadyTime: Integer = -1;
end;
end;
-procedure g_Game_Message(Msg: string; Time: Word);
-begin
- MessageLineLength := (gScreenWidth - 204) div e_CharFont_GetMaxWidth(gMenuFont);
- MessageText := b_Text_Wrap(b_Text_Format(Msg), MessageLineLength);
- MessageTime := Time;
-end;
+ procedure g_Game_Message (Msg: string; Time: Word);
+ begin
+ MessageText := Msg;
+ MessageTime := Time;
+ end;
procedure g_Game_ChatSound(Text: String; Taunt: Boolean = True);
const
index 213b27e471f090def65d8f4a9a272191f84a5fea..adeb1092b4171f29edf13ee14c454f171a1d709d 100644 (file)
g_holmes,
{$ENDIF}
SysUtils, Classes, Math,
- g_base, r_graphics,
+ g_base, g_basic, r_graphics,
g_system, g_touch,
MAPDEF, xprofiler, utils, wadreader,
e_input, e_sound,
back: string;
plView1, plView2: TPlayer;
Split: Boolean;
+ MsgLineLength: Integer;
+ MsgText: String;
begin
if gExit = EXIT_QUIT then Exit;
w := 0;
h := 0;
e_CharFont_GetSizeFmt(gMenuFont, MessageText, w, h);
+ MsgLineLength := (gScreenWidth - 204) div e_CharFont_GetMaxWidth(gMenuFont);
+ MsgText := b_Text_Wrap(b_Text_Format(MessageText), MsgLineLength);
if Split then
e_CharFont_PrintFmt(gMenuFont, (gScreenWidth div 2)-(w div 2),
- (gScreenHeight div 2)-(h div 2), MessageText)
+ (gScreenHeight div 2)-(h div 2), MsgText)
else
e_CharFont_PrintFmt(gMenuFont, (gScreenWidth div 2)-(w div 2),
- Round(gScreenHeight / 2.75)-(h div 2), MessageText);
+ Round(gScreenHeight / 2.75)-(h div 2), MsgText);
end;
if IsDrawStat or (gSpectMode = SPECT_STATS) then