Move P_GetMobjtype above first use
This commit is contained in:
parent
6a69aa4ffa
commit
e90eb9a5e7
26
src/p_mobj.c
26
src/p_mobj.c
|
@ -11121,6 +11121,19 @@ void P_PrecipitationEffects(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Returns corresponding mobj type from mapthing number.
|
||||||
|
* \param mthingtype Mapthing number in question.
|
||||||
|
* \return Mobj type; MT_UNKNOWN if nothing found.
|
||||||
|
*/
|
||||||
|
static mobjtype_t P_GetMobjtype(UINT16 mthingtype)
|
||||||
|
{
|
||||||
|
mobjtype_t i;
|
||||||
|
for (i = 0; i < NUMMOBJTYPES; i++)
|
||||||
|
if (mthingtype == mobjinfo[i].doomednum)
|
||||||
|
return i;
|
||||||
|
return MT_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// P_RespawnSpecials
|
// P_RespawnSpecials
|
||||||
//
|
//
|
||||||
|
@ -11630,19 +11643,6 @@ static fixed_t P_GetMobjSpawnHeight(const mobjtype_t mobjtype, const mapthing_t*
|
||||||
ss->sector->floorheight) + offset;
|
ss->sector->floorheight) + offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns corresponding mobj type from mapthing number.
|
|
||||||
* \param mthingtype Mapthing number in question.
|
|
||||||
* \return Mobj type; MT_UNKNOWN if nothing found.
|
|
||||||
*/
|
|
||||||
static mobjtype_t P_GetMobjtype(UINT16 mthingtype)
|
|
||||||
{
|
|
||||||
mobjtype_t i;
|
|
||||||
for (i = 0; i < NUMMOBJTYPES; i++)
|
|
||||||
if (mthingtype == mobjinfo[i].doomednum)
|
|
||||||
return i;
|
|
||||||
return MT_UNKNOWN;
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing)
|
static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing)
|
||||||
{
|
{
|
||||||
#if MAXPLAYERS > 32
|
#if MAXPLAYERS > 32
|
||||||
|
|
Loading…
Reference in New Issue