summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0374fd)
raw | patch | inline | side by side (parent: d0374fd)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 21 Feb 2023 17:29:36 +0000 (20:29 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:19:40 +0000 (12:19 +0300) |
src/game/renders/opengl/r_map.pas | patch | blob | history |
index d58daee2ce5516c22223cf3573623312d73f24ec..f27043e12a0cb26addf19793eddde58ad44bb6ba 100644 (file)
end;
function r_Map_GetMonsterTexture (m, a: Integer; d: TDirection; out t: TGLMultiTexture; out dx, dy: Integer; out flip: Boolean): Boolean;
- // var c: Integer;
+ var w: Integer;
begin
t := nil; dx := 0; dy := 0; flip := false;
result := MonTextures[m, a, d] <> nil;
end;
if flip then
begin
-// c := (MONSTERTABLE[MonsterType].Rect.X - dx) + MONSTERTABLE[MonsterType].Rect.Width;
-// dx := MTABLE[m].width - c - MONSTERTABLE[MonsterType].Rect.X;
- dx := -dx;
+ if (m = MONSTER_SOUL) and (a = ANIM_DIE) then w := 64 else w := 0;
+ dx := -dx - w;
end;
end;
end;