by HotWax » Wed Apr 16, 2008 9:45 am
Graf Zahl wrote:I also changed it so that any error returns -1 so that 0 can be used for a player without tid not having a camera.
I'm having trouble wrapping my brain around that statement for some reason. Does the function now return -1 if the specified player isn't viewing through a camera? Or does it still return 0, and would return -1 if there was some other problem (like the player not being present, for example)?
AFAIK, there should never be a case where the camera a player is viewing through wouldn't have a TID, since the TID is needed to change the player's viewpoint. (Right?) So 0 could be reserved for "no camera."
[quote="Graf Zahl"]I also changed it so that any error returns -1 so that 0 can be used for a player without tid not having a camera.[/quote]
I'm having trouble wrapping my brain around that statement for some reason. Does the function now return -1 if the specified player isn't viewing through a camera? Or does it still return 0, and would return -1 if there was some other problem (like the player not being present, for example)?
AFAIK, there should never be a case where the camera a player is viewing through wouldn't have a TID, since the TID is needed to change the player's viewpoint. (Right?) So 0 could be reserved for "no camera."