Reorder objnum_remote_to_local owner check
This commit is contained in:
parent
31df9268bf
commit
a232bbe488
|
@ -258,15 +258,14 @@ void ClipRank (ubyte *rank)
|
|||
|
||||
objnum_t objnum_remote_to_local(int remote_objnum, int owner)
|
||||
{
|
||||
if (owner == -1)
|
||||
return(remote_objnum);
|
||||
// Map a remote object number from owner to a local object number
|
||||
if ((owner >= N_players) || (owner < -1)) {
|
||||
Int3(); // Illegal!
|
||||
return(remote_objnum);
|
||||
}
|
||||
|
||||
if (owner == -1)
|
||||
return(remote_objnum);
|
||||
|
||||
if ((remote_objnum < 0) || (remote_objnum >= MAX_OBJECTS))
|
||||
return(object_none);
|
||||
|
||||
|
|
Loading…
Reference in a new issue