diff --git a/source/games/blood/src/aiunicult.cpp b/source/games/blood/src/aiunicult.cpp index 79c9d7e61..6a7a68461 100644 --- a/source/games/blood/src/aiunicult.cpp +++ b/source/games/blood/src/aiunicult.cpp @@ -374,7 +374,7 @@ static void ThrowThing(DBloodActor* actor, bool impact) spawned->xspr.data3 = 512 / (gGameOptions.nDifficulty + 1); spawned->spr.cstat &= ~CSTAT_SPRITE_BLOCK; spawned->spr.pal = 6; - spawned->spr.clipdist = 0; + spawned->set_native_clipdist(0); spawned->SetTarget(actor->GetTarget()); spawned->xspr.Proximity = true; spawned->xspr.stateTimer = 1; diff --git a/source/games/blood/src/callback.cpp b/source/games/blood/src/callback.cpp index 2a4105a2e..15f42e4f1 100644 --- a/source/games/blood/src/callback.cpp +++ b/source/games/blood/src/callback.cpp @@ -96,7 +96,7 @@ void FlareBurst(DBloodActor* actor, sectortype*) // 2 spawnedactor->spr.shade = -128; spawnedactor->spr.xrepeat = spawnedactor->spr.yrepeat = 32; spawnedactor->spr.type = kMissileFlareAlt; - spawnedactor->spr.clipdist = 2; + spawnedactor->set_native_clipdist(2); spawnedactor->SetOwner(actor); int nAngle2 = (i << 11) / 8; int dx = 0; diff --git a/source/games/blood/src/db.cpp b/source/games/blood/src/db.cpp index 278da4c60..63292a776 100644 --- a/source/games/blood/src/db.cpp +++ b/source/games/blood/src/db.cpp @@ -50,7 +50,7 @@ DBloodActor* InsertSprite(sectortype* pSector, int nStat) { auto act = static_cast(::InsertActor(RUNTIME_CLASS(DBloodActor), pSector, nStat)); act->spr.cstat = CSTAT_SPRITE_YCENTER; - act->spr.clipdist = 32; + act->set_native_clipdist(32); act->spr.xrepeat = act->spr.yrepeat = 64; return act; } diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 4b42d0bd1..5eb1f4f31 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -1553,7 +1553,7 @@ void forcesphere(DDukeActor* actor, int forcesphere) if (k) { k->spr.cstat = CSTAT_SPRITE_BLOCK_ALL | CSTAT_SPRITE_YCENTER; - k->spr.clipdist = 64; + k->set_native_clipdist(64); k->set_int_ang(j); k->set_int_zvel(bsin(l, -5)); k->set_int_xvel(bcos(l, -9)); diff --git a/source/games/duke/src/actors_r.cpp b/source/games/duke/src/actors_r.cpp index 291d968fd..0f94a821a 100644 --- a/source/games/duke/src/actors_r.cpp +++ b/source/games/duke/src/actors_r.cpp @@ -578,25 +578,25 @@ void respawn_rrra(DDukeActor* oldact, DDukeActor* newact) { newact->spr.xrepeat = 26; newact->spr.yrepeat = 26; - newact->spr.clipdist = 75; + newact->set_native_clipdist(75); } else if (newact->spr.pal == 31) { newact->spr.xrepeat = 36; newact->spr.yrepeat = 36; - newact->spr.clipdist = 100; + newact->set_native_clipdist(100); } else if (newact->spr.pal == 32) { newact->spr.xrepeat = 50; newact->spr.yrepeat = 50; - newact->spr.clipdist = 100; + newact->set_native_clipdist(100); } else { newact->spr.xrepeat = 50; newact->spr.yrepeat = 50; - newact->spr.clipdist = 100; + newact->set_native_clipdist(100); } } diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index eb0c0339d..2d3893ee7 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -2228,7 +2228,7 @@ int ParseState::parse(void) g_ac->spr.cstat = CSTAT_SPRITE_BLOCK_ALL; g_ac->spr.shade = -12; - g_ac->spr.clipdist = 64; + g_ac->set_native_clipdist(64); g_ac->spr.xrepeat = 42; g_ac->spr.yrepeat = 36; g_ac->SetOwner(g_ac);