From b0b5dbc55bf7f7e3a8d59e531b23d82cd47a3365 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 11 Sep 2022 23:31:20 +0200 Subject: [PATCH] - eliminated add_int_ceilingz --- source/core/maptypes.h | 4 ---- source/games/duke/src/actors.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source/core/maptypes.h b/source/core/maptypes.h index 1e19507d4..42adf60ce 100644 --- a/source/core/maptypes.h +++ b/source/core/maptypes.h @@ -233,8 +233,6 @@ struct sectortype void set_int_ceilingz(int cc, bool temp = false) {} void set_int_floorz(int cc, bool temp = false) {} - void add_int_ceilingz(int cc, bool temp = false) {} - void add_int_floorz(int cc, bool temp = false) {} #else // Do not change directly! @@ -247,8 +245,6 @@ struct sectortype void set_int_ceilingz(int cc, bool temp = false) { setceilingz(cc * zinttoworld, temp); } void set_int_floorz(int cc, bool temp = false) { setfloorz(cc * zinttoworld, temp); } - void add_int_ceilingz(int cc, bool temp = false) { addceilingz(cc * zinttoworld, temp); } - void add_int_floorz(int cc, bool temp = false) { addfloorz(cc * zinttoworld, temp); } void setzfrommap(int c, int f) { diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 2d932613a..13b6b8254 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -4509,7 +4509,7 @@ void handle_se35(DDukeActor *actor, int SMALLSMOKE, int EXPLOSION2) if (sc->ceilingz > actor->spr.pos.Z) for (int j = 0; j < 8; j++) { - actor->add_int_ang(krand() & 511); + actor->spr.angle = randomAngle(90); auto spawned = spawn(actor, SMALLSMOKE); if (spawned) {