Fix powerup aura being unflipped

This commit is contained in:
JugadorXEI 2024-05-22 20:53:17 +02:00
parent cea8b9566e
commit 586e4c4cd8

View file

@ -17,6 +17,7 @@
#include "../p_local.h"
#include "../p_mobj.h"
#include "../tables.h"
#include "../k_kart.h"
// copied from objects/monitor.c
#define FINE90 (FINEANGLES/4)
@ -92,7 +93,10 @@ struct Aura : mobj_t
return;
}
P_MoveOrigin(this, origin()->x, origin()->y, origin()->z);
K_FlipFromObject(this, origin());
fixed_t flipoffset = P_IsObjectFlipped(origin()) ? origin()->height : 0;
P_MoveOrigin(this, origin()->x, origin()->y, origin()->z - flipoffset);
P_InstaScale(this, 11 * origin()->scale / 10);
translate();