X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_monsters.pas;h=c55e143ed92fba001467dbe7a596109d97028ce9;hp=9a747455ecc9e5ffc71d9e04d4682c509212b3cd;hb=d5d513b459869550bc0623d910eb97c706fab07d;hpb=f78ac74cc8c7789d25c8783b21feee74ce938bb3 diff --git a/src/game/opengl/r_monsters.pas b/src/game/opengl/r_monsters.pas index 9a74745..c55e143 100644 --- a/src/game/opengl/r_monsters.pas +++ b/src/game/opengl/r_monsters.pas @@ -24,7 +24,7 @@ implementation uses SysUtils, Classes, Math, - r_graphics, g_options, + r_graphics, g_options, r_animations, MAPDEF, g_base, g_basic, g_game, g_phys, g_monsters @@ -44,7 +44,7 @@ implementation if MonsterType = MONSTER_VILE then if MonsterState = MONSTATE_SHOOT then if GetPos(MonsterTargetUID, @o) then - VileFireAnim.Draw(o.X + o.Rect.X + (o.Rect.Width div 2) - 32, o.Y + o.Rect.Y + o.Rect.Height - 128, TMirrorType.None); + r_Animation_Draw(VileFireAnim, o.X + o.Rect.X + (o.Rect.Width div 2) - 32, o.Y + o.Rect.Y + o.Rect.Height - 128, TMirrorType.None); // Не в области рисования не ресуем: //FIXME! @@ -93,8 +93,7 @@ implementation dy := MONSTER_ANIMTABLE[MonsterType].AnimDeltaRight[MonsterAnim].Y; end; - // Рисуем: - DirAnim[MonsterAnim, GameDirection].Draw(fX + dx, fY + dy, m); + r_Animation_Draw(DirAnim[MonsterAnim, GameDirection], fX + dx, fY + dy, m); end; if g_debug_Frames then