• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

修訂ed8af76527549dda5f59075e527085bdda3d15ca (tree)
時間2022-09-07 21:57:19
作者Adam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: cl_telespy still teleported a spectator when they were already looking through their own eyes.

Change Summary

差異

diff -r 82c883d82cce -r ed8af7652754 docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Wed Sep 07 08:56:59 2022 -0400
+++ b/docs/zandronum-history.txt Wed Sep 07 08:57:19 2022 -0400
@@ -74,6 +74,7 @@
7474 - - Fixed: players could still respawn (albeit frozen) during the result sequence if sv_forcerespawn was on. [Kaminsky]
7575 - - Fixed: puffs didn't enter their XDeath states in online games. [Kaminsky]
7676 - - 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]
7778 ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky]
7879 ! - 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]
7980 ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky]
diff -r 82c883d82cce -r ed8af7652754 src/g_game.cpp
--- a/src/g_game.cpp Wed Sep 07 08:56:59 2022 -0400
+++ b/src/g_game.cpp Wed Sep 07 08:57:19 2022 -0400
@@ -1147,13 +1147,16 @@
11471147 {
11481148 // [AK] If we're a spectator and want to teleport ourselves to the player we just
11491149 // 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+ }
11571160 }
11581161
11591162 players[consoleplayer].camera = players[ulPlayer].mo;