NSRenderableEntity: Respect traileffectnum only when a previous position is known

This commit is contained in:
Marco Cawthorne 2023-07-27 23:19:24 -07:00
parent 183d343701
commit 2656593203
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 1 deletions

View File

@ -616,7 +616,8 @@ NSRenderableEntity::predraw(void)
}
if (traileffectnum) {
trailparticles(traileffectnum, this, oldorigin, origin);
if (oldorigin != g_vec_null)
trailparticles(traileffectnum, this, oldorigin, origin);
}
oldorigin = origin;