X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_gfx.pas;h=e4c46f199d17a9bf74a2180be95d1ff5e4fc0c4c;hp=4e9cdd89354dc382ed48437bc452b2f20043cf94;hb=d8cb72ed4297af2d519c52270f8f32ddfd7fc58b;hpb=7c0186b3f1e66e80377d14364f0cec949e44e615 diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas index 4e9cdd8..e4c46f1 100644 --- a/src/game/g_gfx.pas +++ b/src/game/g_gfx.pas @@ -26,6 +26,8 @@ uses const BLOOD_NORMAL = 0; BLOOD_SPARKS = 1; + BLOOD_CSPARKS = 2; + BLOOD_COMBINE = 3; ONCEANIM_NONE = 0; ONCEANIM_SMOKE = 1; @@ -921,6 +923,11 @@ begin begin g_GFX_SparkVel(fX, fY, 2+Random(2), -vx div 2, -vy div 2, devX, devY); exit; + end + else if (kind = BLOOD_CSPARKS) OR (kind = BLOOD_COMBINE) then + begin + g_GFX_SparkVel(fX, fY, count, -vx div 2, -vy div 2, devX, devY); + if kind <> BLOOD_COMBINE then exit end; l := Length(Particles);