diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 681e182d7b1583834630e5a8fd7999ac4b65cbf9..4f86e9b0d3f14ddc3f21e097756080f4996e2e12 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
SetLength(s, 64);
CopyMemory(@s[1], @_textures[a].Resource[0], 64);
for b := 1 to Length(s) do
+ begin
if s[b] = #0 then
begin
SetLength(s, b-1);
Break;
end;
+ end;
+ {$IF DEFINED(D2F_DEBUG)}
e_WriteLog(Format(' Loading texture #%d: %s', [a, s]), MSG_NOTIFY);
+ {$ENDIF}
//if g_Map_IsSpecialTexture(s) then e_WriteLog(' SPECIAL!', MSG_NOTIFY);
// Àíèìèðîâàííàÿ òåêñòóðà:
if ByteBool(_textures[a].Anim) then