summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de88b54)
raw | patch | inline | side by side (parent: de88b54)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 22 Aug 2017 11:16:06 +0000 (14:16 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Wed, 23 Aug 2017 18:23:55 +0000 (21:23 +0300) |
previous ray tracer was bugged: it could return position inside wall,
so particles were trying to "compensate" for that (wrongly). and they
were doing it on *each*(!) think step.
as particles are pure eye candy (and i rewrote ray tracer), i removed
that "compensator" altogether.
so particles were trying to "compensate" for that (wrongly). and they
were doing it on *each*(!) think step.
as particles are pure eye candy (and i rewrote ray tracer), i removed
that "compensator" altogether.
src/game/g_gfx.pas | patch | blob | history |
diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas
index 4be9437ab278b002c609235a6865c85c3fadab02..7afc4ee0c50267988a295d9e199c456eeb5d75cc 100644 (file)
--- a/src/game/g_gfx.pas
+++ b/src/game/g_gfx.pas
end;
-procedure CorrectOffsets(id: Integer);
+{
+procedure CorrectOffsets(id: Integer); inline;
var
part: PParticle;
begin
// check for left wall
if isBlockedAt(part.X-1, part.Y) then part.offsetX := 1;
end;
+}
procedure g_GFX_SparkVel (fX, fY: Integer; Count: Word; VX, VY: Integer; DevX, DevY: Byte);
LiveTime := 30+Random(60);
ParticleType := PARTICLE_SPARK;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle+2 > MaxParticles then
LiveTime := 120+Random(40);
ParticleType := PARTICLE_BLOOD;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle >= MaxParticles-1 then
LiveTime := 30+Random(60);
ParticleType := PARTICLE_SPARK;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle+2 > MaxParticles then
LiveTime := 60+Random(60);
ParticleType := PARTICLE_WATER;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle+2 > MaxParticles then
LiveTime := 60+Random(60);
ParticleType := PARTICLE_WATER;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle+2 > MaxParticles then
LiveTime := 65535;
ParticleType := PARTICLE_BUBBLES;
- CorrectOffsets(CurrentParticle);
+ {CorrectOffsets(CurrentParticle);}
end;
if CurrentParticle+2 > MaxParticles then
end;
end; // case
- CorrectOffsets(a);
+ {CorrectOffsets(a);}
end; // with
end; // if
end; // for