Confirmed Change seenplayer from player_t* to int

Status
Not open for further replies.

SSNTails

What part of 'RETIRED' don't you understand?
Keeping track of seenplayer as a pointer can introduce a dangling pointer when the seenplayer leaves the netgame. A better approach might be to store the player # (seenplayer = player-players) and check if(playingame[seenplayer]) to see if it's a valid sight.
 
Last edited by a moderator:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top