This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
修訂 | ed8af76527549dda5f59075e527085bdda3d15ca (tree) |
---|---|
時間 | 2022-09-07 21:57:19 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: cl_telespy still teleported a spectator when they were already looking through their own eyes.
@@ -74,6 +74,7 @@ | ||
74 | 74 | - - Fixed: players could still respawn (albeit frozen) during the result sequence if sv_forcerespawn was on. [Kaminsky] |
75 | 75 | - - Fixed: puffs didn't enter their XDeath states in online games. [Kaminsky] |
76 | 76 | - - Fixed: spawning game mode artifacts like the possession stone and terminator ball didn't correctly account for useplayerstartz. [Kaminsky] |
77 | +- - Fixed: cl_telespy still teleported a spectator when they were already looking through their own eyes. [Kaminsky] | |
77 | 78 | ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky] |
78 | 79 | ! - GAMEMODE flags are now validated after all GAMEMODE lumps have been parsed instead of after each one. The internal game mode name (e.g. "TeamLMS") is now printed with the error message instead of the actual name. [Kaminsky] |
79 | 80 | ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky] |
@@ -1147,13 +1147,16 @@ | ||
1147 | 1147 | { |
1148 | 1148 | // [AK] If we're a spectator and want to teleport ourselves to the player we just |
1149 | 1149 | // spied on, do it when we switch back to our own view. |
1150 | - if (( cl_telespy ) && ( ulPlayer == consoleplayer ) && ( players[consoleplayer].bSpectating ) && ( players[consoleplayer].camera )) | |
1151 | - { | |
1152 | - P_TeleportMove( players[consoleplayer].mo, players[consoleplayer].camera->x, | |
1153 | - players[consoleplayer].camera->y, players[consoleplayer].camera->z, false ); | |
1154 | - | |
1155 | - players[consoleplayer].mo->angle = players[consoleplayer].camera->angle; | |
1156 | - players[consoleplayer].mo->pitch = players[consoleplayer].camera->pitch; | |
1150 | + if (( cl_telespy ) && ( ulPlayer == consoleplayer ) && ( players[consoleplayer].bSpectating )) | |
1151 | + { | |
1152 | + if (( players[consoleplayer].camera ) && ( players[consoleplayer].camera != players[consoleplayer].mo )) | |
1153 | + { | |
1154 | + P_TeleportMove( players[consoleplayer].mo, players[consoleplayer].camera->x, | |
1155 | + players[consoleplayer].camera->y, players[consoleplayer].camera->z, false ); | |
1156 | + | |
1157 | + players[consoleplayer].mo->angle = players[consoleplayer].camera->angle; | |
1158 | + players[consoleplayer].mo->pitch = players[consoleplayer].camera->pitch; | |
1159 | + } | |
1157 | 1160 | } |
1158 | 1161 | |
1159 | 1162 | players[consoleplayer].camera = players[ulPlayer].mo; |