diff --git a/source/games/duke/src/actors_d.cpp b/source/games/duke/src/actors_d.cpp index 3bfc80c9a..8e6e67544 100644 --- a/source/games/duke/src/actors_d.cpp +++ b/source/games/duke/src/actors_d.cpp @@ -1903,7 +1903,7 @@ void movetransports_d(void) for (int l = 0; l < 9; l++) { auto q = spawn(ps[p].GetActor(), WATERBUBBLE); - if (q) q->add_int_z(krand() & 16383); + if (q) q->spr.pos.Z += krandf(64); } } } @@ -3006,7 +3006,7 @@ void moveexplosions_d(void) // STATNUM 5 case BLOODSPLAT4: if (act->temp_data[0] == 7 * 26) continue; - act->add_int_z(16 + (krand() & 15)); + act->spr.pos.Z += 1 / 16. + krandf(1 / 16.); act->temp_data[0]++; if ((act->temp_data[0] % 9) == 0) act->spr.yrepeat++; continue; diff --git a/source/games/duke/src/actors_r.cpp b/source/games/duke/src/actors_r.cpp index 599212add..17441b676 100644 --- a/source/games/duke/src/actors_r.cpp +++ b/source/games/duke/src/actors_r.cpp @@ -2935,7 +2935,7 @@ void moveexplosions_r(void) // STATNUM 5 case BLOODSPLAT4: if (act->temp_data[0] == 7 * 26) continue; - act->add_int_z(16 + (krand() & 15)); + act->spr.pos.Z += 1 / 16. + krandf(1 / 16.); act->temp_data[0]++; if ((act->temp_data[0] % 9) == 0) act->spr.yrepeat++; continue;