Reallow doomednum overriding

https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2740
This commit is contained in:
NepDisk 2025-09-25 13:00:03 -04:00
parent 29ca3d2ecd
commit 10671fff5a

View file

@ -12099,8 +12099,8 @@ void P_PrecipitationEffects(void)
*/
mobjtype_t P_GetMobjtype(UINT16 mthingtype)
{
mobjtype_t i;
for (i = 0; i < NUMMOBJTYPES; i++)
INT32 i;
for (i = NUMMOBJTYPES-1; i >= 0; i--)
if (mthingtype == mobjinfo[i].doomednum)
return i;
return MT_UNKNOWN;