This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).
修訂 | 4e8342339656a2dbe6538c2276769866481c298f (tree) |
---|---|
時間 | 2024-10-28 06:39:14 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: an actor's pitch wasn't synced to clients when they received a full update or when the map resetted in online games.
@@ -208,6 +208,7 @@ | ||
208 | 208 | - - Fixed: UDMF values and user variables of map things are now properly reset on map reset. [Barrels O' Fun] |
209 | 209 | - - Fixed: the ally and enemy counters on the bottom of the HUD didn't update when a player changed their team without respawning. [Kaminsky] |
210 | 210 | - - 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] | |
211 | 212 | ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky] |
212 | 213 | ! - 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] |
213 | 214 | ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky] |
@@ -3930,6 +3930,10 @@ | ||
3930 | 3930 | // Check and see if it's important that the client know the angle of the object. |
3931 | 3931 | if ( pNewActor->angle != 0 ) |
3932 | 3932 | 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 ); | |
3933 | 3937 | } |
3934 | 3938 | } |
3935 | 3939 |
@@ -4137,6 +4141,10 @@ | ||
4137 | 4141 | if ( pNewActor->angle != 0 ) |
4138 | 4142 | SERVERCOMMANDS_SetThingAngle( pNewActor ); |
4139 | 4143 | |
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 | + | |
4140 | 4148 | // [BB] The server reset the args of the old actor, inform the clients about this. |
4141 | 4149 | if ( ( pNewActor->args[0] != 0 ) |
4142 | 4150 | || ( pNewActor->args[1] != 0 ) |
@@ -2794,6 +2794,9 @@ | ||
2794 | 2794 | if ( pActor->velz != 0 ) |
2795 | 2795 | ulBits |= CM_VELZ; |
2796 | 2796 | |
2797 | + if ( pActor->pitch != 0 ) | |
2798 | + ulBits |= CM_PITCH; | |
2799 | + | |
2797 | 2800 | if ( pActor->movedir != 0 ) |
2798 | 2801 | ulBits |= CM_MOVEDIR; |
2799 | 2802 |