From 02a586e6b212594ededbbfea521fad3cd69d14cd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Apr 2016 21:03:49 +0200 Subject: [PATCH] - removed a redundant Vec3Offset call in A_SpawnParticle. --- src/p_spec.h | 2 +- src/thingdef/thingdef_codeptr.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_spec.h b/src/p_spec.h index 7cabf0ad3d..c934d73126 100644 --- a/src/p_spec.h +++ b/src/p_spec.h @@ -87,7 +87,7 @@ const double CARRYFACTOR = 3 / 32.; bool CheckIfExitIsGood (AActor *self, level_info_t *info); // at map load -void P_InitSectorSpecial(sector_t *sector, int special, bool nothinkers); +void P_InitSectorSpecial(sector_t *sector, int special); void P_SpawnSpecials (void); // every tic diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 14afa7114d..4024b85bcc 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -3038,7 +3038,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SpawnParticle) acc.X = accelx * c + accely * s; acc.Y = accelx * s - accely * c; } - pos = self->Vec3Offset(xoff, yoff, zoff); P_SpawnParticle(self->Vec3Offset(pos), vel, acc, color, !!(flags & SPF_FULLBRIGHT), startalpha, lifetime, size, fadestep); } return 0;