• 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 used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).


Commit MetaInfo

修訂4e8342339656a2dbe6538c2276769866481c298f (tree)
時間2024-10-28 06:39:14
作者Adam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: an actor's pitch wasn't synced to clients when they received a full update or when the map resetted in online games.

Change Summary

差異

diff -r 2b3de5da73ef -r 4e8342339656 docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Sun Oct 27 13:40:47 2024 -0400
+++ b/docs/zandronum-history.txt Sun Oct 27 17:39:14 2024 -0400
@@ -208,6 +208,7 @@
208208 - - Fixed: UDMF values and user variables of map things are now properly reset on map reset. [Barrels O' Fun]
209209 - - Fixed: the ally and enemy counters on the bottom of the HUD didn't update when a player changed their team without respawning. [Kaminsky]
210210 - - Fixed: sv_spawnfarthest didn't work at all in team-based game modes (excluding Team DM and Team LMS). [Kaminsky]
211+- - Fixed: an actor's pitch wasn't synced to clients when they received a full update or when the map resetted in online games. [Kaminsky]
211212 ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky]
212213 ! - 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]
213214 ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky]
diff -r 2b3de5da73ef -r 4e8342339656 src/g_game.cpp
--- a/src/g_game.cpp Sun Oct 27 13:40:47 2024 -0400
+++ b/src/g_game.cpp Sun Oct 27 17:39:14 2024 -0400
@@ -3930,6 +3930,10 @@
39303930 // Check and see if it's important that the client know the angle of the object.
39313931 if ( pNewActor->angle != 0 )
39323932 SERVERCOMMANDS_SetThingAngle( pNewActor );
3933+
3934+ // [AK] Send the actor's pitch too if it's important for the client to know it.
3935+ if ( pNewActor->pitch != 0 )
3936+ SERVERCOMMANDS_MoveThing( pNewActor, CM_PITCH );
39333937 }
39343938 }
39353939
@@ -4137,6 +4141,10 @@
41374141 if ( pNewActor->angle != 0 )
41384142 SERVERCOMMANDS_SetThingAngle( pNewActor );
41394143
4144+ // [AK] Send the actor's pitch too if it's important for the client to know it.
4145+ if ( pNewActor->pitch != 0 )
4146+ SERVERCOMMANDS_MoveThing( pNewActor, CM_PITCH );
4147+
41404148 // [BB] The server reset the args of the old actor, inform the clients about this.
41414149 if ( ( pNewActor->args[0] != 0 )
41424150 || ( pNewActor->args[1] != 0 )
diff -r 2b3de5da73ef -r 4e8342339656 src/sv_main.cpp
--- a/src/sv_main.cpp Sun Oct 27 13:40:47 2024 -0400
+++ b/src/sv_main.cpp Sun Oct 27 17:39:14 2024 -0400
@@ -2794,6 +2794,9 @@
27942794 if ( pActor->velz != 0 )
27952795 ulBits |= CM_VELZ;
27962796
2797+ if ( pActor->pitch != 0 )
2798+ ulBits |= CM_PITCH;
2799+
27972800 if ( pActor->movedir != 0 )
27982801 ulBits |= CM_MOVEDIR;
27992802