summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4203c9)
raw | patch | inline | side by side (parent: d4203c9)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 16 Feb 2023 19:01:18 +0000 (22:01 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:14:45 +0000 (12:14 +0300) |
src/game/renders/opengl/r_textures.pas | patch | blob | history |
index f66708fbe57af0a95b177e3ba078d5d366c40877..ec47f58bc640ecd4d2a213246f19519ccaaef100 100644 (file)
end;
end;
- function r_Textures_LoadTextFromMemory (data: Pointer; size: LongInt; var txt: TAnimTextInfo): Boolean;
- var cfg: TConfig; text: TAnimTextInfo;
+ function r_Textures_LoadTextFromMemory (data: Pointer; size: LongInt; var text: TAnimTextInfo): Boolean;
+ var cfg: TConfig;
begin
result := false;
if data <> nil then
text.anim.delay := MAX(1, text.anim.delay);
text.anim.frames := MAX(1, text.anim.frames);
cfg.Free;
- if (txt.name <> '') and (txt.w > 0) and (txt.h > 0) and (txt.anim.delay > 0) and (txt.anim.frames > 0) then
- begin
- txt := text;
- result := true;
- end;
+ result := (text.name <> '') and (text.w > 0) and (text.h > 0) and (text.anim.delay > 0) and (text.anim.frames > 0);
end;
end;
end;