mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- Duke: New setup for blood splatters against walls, taking full account of the float precision.
This commit is contained in:
parent
2fbee8faf5
commit
f149410750
1 changed files with 9 additions and 4 deletions
|
@ -3002,10 +3002,15 @@ void moveexplosions_d(void) // STATNUM 5
|
|||
case BLOODSPLAT3:
|
||||
case BLOODSPLAT4:
|
||||
|
||||
if (act->temp_data[0] == 7 * 26) continue;
|
||||
act->spr.pos.Z += 1 / 16. + krandf(1 / 16.);
|
||||
if (act->temp_data[0] < 7 * 26)
|
||||
{
|
||||
auto offset = krandf(1);
|
||||
auto zadj = (1. / 16.);
|
||||
auto sadj = (1. / 12.) * REPEAT_SCALE;
|
||||
act->spr.pos.Z += zadj + offset * zadj;
|
||||
act->spr.scale.Y += sadj + offset * sadj;
|
||||
act->temp_data[0]++;
|
||||
if ((act->temp_data[0] % 9) == 0) act->spr.scale.Y += (REPEAT_SCALE);
|
||||
}
|
||||
continue;
|
||||
|
||||
case NUKEBUTTON:
|
||||
|
|
Loading…
Reference in a new issue