From 5954077ec1faec81a0422eb7a63955df2a4226b3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Apr 2023 09:17:07 +0200 Subject: [PATCH] - Duke: set clipdist default also for external bad guys. --- source/games/duke/src/spawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index 47655c954..35bb13262 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -304,11 +304,11 @@ bool commonEnemySetup(DDukeActor* self, DDukeActor* owner) if (gs.actorinfo[self->spr.picnum].scriptaddress) // default scale only applies to actors with a CON part. Note: needs fixing later! { + self->clipdist = 20; // Init the size. This is different for internal and user enemies. if (actorflag(self, SFLAG_INTERNAL_BADGUY)) { self->spr.scale = DVector2(0.625, 0.625); - self->clipdist = 20; } else if (self->spr.scale.X == 0 || self->spr.scale.Y == 0) {