Fix warnings in rideroid.c that popped up after I unfucked my compile flags

This commit is contained in:
Lat 2023-09-20 14:46:02 +02:00
parent ea8e871176
commit 85a103e743

View file

@ -118,7 +118,7 @@ static fixed_t Obj_rideroidLerp(INT32 start, INT32 finish, INT32 percent)
static void Obj_rideroidTrail(mobj_t *mo) static void Obj_rideroidTrail(mobj_t *mo)
{ {
mobj_t *pmo = mo->target; mobj_t *pmo = mo->target;
player_t *p; player_t *p = NULL;
UINT8 i, j; UINT8 i, j;
@ -456,9 +456,11 @@ void Obj_RideroidNodeSpawn(mobj_t *mo)
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
{ {
angle_t ang = mo->angle + (i)*180*ANG1; angle_t ang = mo->angle + (i)*180;
fixed_t zpos = mo->z + 64*mapobjectscale + mapobjectscale*96*i; fixed_t zpos = mo->z + 64*mapobjectscale + mapobjectscale*96*i;
ang *= ANG1; // this has to be done here or the warning prevents the compile, we don't care about overflowing here.
for (j = 0; j < 7; j++) for (j = 0; j < 7; j++)
{ {
fixed_t xpos = mo->x + FixedMul(radius, FINECOSINE(ang>>ANGLETOFINESHIFT)); fixed_t xpos = mo->x + FixedMul(radius, FINECOSINE(ang>>ANGLETOFINESHIFT));