mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Move P_GetMobjtype above first use
This commit is contained in:
parent
6a69aa4ffa
commit
e90eb9a5e7
1 changed files with 13 additions and 13 deletions
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
|
||||
//
|
||||
|
@ -11630,19 +11643,6 @@ static fixed_t P_GetMobjSpawnHeight(const mobjtype_t mobjtype, const mapthing_t*
|
|||
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)
|
||||
{
|
||||
#if MAXPLAYERS > 32
|
||||
|
|
Loading…
Reference in a new issue