Update g_demo.c

This commit is contained in:
Radicalicious 2021-06-20 21:02:32 -04:00
parent 4129140b4a
commit e6fbd482ad

View file

@ -786,7 +786,7 @@ void G_GhostTicker(void)
} }
else if (type == MT_THOKEFFECT) else if (type == MT_THOKEFFECT)
{ {
mobj = P_SpawnMobjFromMobj(g->mo, 0, 0, FRACUNIT * 24, type); mobj = P_SpawnMobjFromMobj(g->mo, 0, 0, FixedDiv(g->mo->height, g->mo->scale)*3/4, type);
mobj->angle = g->mo->angle + ANGLE_90; mobj->angle = g->mo->angle + ANGLE_90;
mobj->fuse = 7; mobj->fuse = 7;
mobj->scale = g->mo->scale / 3; mobj->scale = g->mo->scale / 3;
@ -1089,7 +1089,7 @@ void G_ReadMetalTic(mobj_t *metal)
} }
else if (type == MT_THOKEFFECT) else if (type == MT_THOKEFFECT)
{ {
mobj = P_SpawnMobjFromMobj(metal, 0, 0, FRACUNIT * 24, type); mobj = P_SpawnMobjFromMobj(metal, 0, 0, FixedDiv(metal->height, metal->scale)*3/4, type);
mobj->angle = metal->angle + ANGLE_90; mobj->angle = metal->angle + ANGLE_90;
mobj->fuse = 7; mobj->fuse = 7;
mobj->scale = metal->scale / 3; mobj->scale = metal->scale / 3;