summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6837a95)
raw | patch | inline | side by side (parent: 6837a95)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 6 Jun 2022 17:15:03 +0000 (20:15 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 08:39:21 +0000 (11:39 +0300) |
src/game/renders/opengl/r_map.pas | patch | blob | history |
index 695195d3548efc03e6bc15818aeabd39007fd4bf..063c36b91e628b048502af9c5d2116116eaa3db6 100644 (file)
end;
procedure r_Map_Free;
- var i, j, k: Integer; d: TDirection;
+ var i, j, k, a: Integer; d: TDirection;
begin
for i := 1 to WP_LAST do
begin
end;
end;
end;
+ for d := TDirection.D_LEFT to TDirection.D_RIGHT do
+ begin
+ for a := A_STAND to A_LAST do
+ begin
+ if Models[i].anim[d, a].base <> nil then
+ Models[i].anim[d, a].base.Free;
+ if Models[i].anim[d, a].mask <> nil then
+ Models[i].anim[d, a].mask.Free;
+ Models[i].anim[d, a].base := nil;
+ Models[i].anim[d, a].mask := nil;
+ end;
+ end;
for i := MONSTER_DEMON to MONSTER_MAN do
begin
for j := 0 to ANIM_LAST do