Commit MetaInfo

Revision07ff1daea4394b03f7f1d6ff4e4b2459ab119da5 (tree)
Time2012-05-27 03:42:12
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

[Dusk] Fixed: Medals weren't announced on spied players.

Change Summary

Incremental Difference

diff -r e5bbd6458ba1 -r 07ff1daea439 docs/Skulltag Version History.txt
--- a/docs/Skulltag Version History.txt Wed May 23 03:50:04 2012 +0300
+++ b/docs/Skulltag Version History.txt Sat May 26 20:42:12 2012 +0200
@@ -227,6 +227,7 @@
227227 - - Fixed: Accuracy/Precision medals are now properly given when using the Rocket Launcher, Grenade Launcher, or BFG10K. [MP2E, Torr Samaho]
228228 - - Fixed problems with the LAN broadcast under Linux. [Koromix]
229229 - - Fixed: Console icon would stick on a player's head if the server missed the packet to remove the icon. [TIHan]
230+- - Fixed: Medals weren't announced on spied players. [Dusk]
230231 ! - Changed F12 to allow spectators full spying, with the exception of during LMS if it's disabled. [Eruanna]
231232 ! - Changed F12 to allow full demo spying. [Eruanna]
232233 ! - Players aren't forced to spectate after a "changemap" map change on a server with a join password anymore. [Torr Samaho]
diff -r e5bbd6458ba1 -r 07ff1daea439 src/medal.cpp
--- a/src/medal.cpp Wed May 23 03:50:04 2012 +0300
+++ b/src/medal.cpp Sat May 26 20:42:12 2012 +0200
@@ -955,7 +955,8 @@
955955 if ( g_MedalQueue[ulPlayer][0].ulTick == MEDAL_ICON_DURATION )
956956 {
957957 // Also, locally play the announcer sound associated with this medal.
958- if ( pPlayer - players == consoleplayer )
958+ // [Dusk] Check coop spy too
959+ if ( pPlayer->mo->CheckLocalView( consoleplayer ) )
959960 {
960961 if ( g_Medals[ulMedal].szAnnouncerEntry[0] )
961962 ANNOUNCER_PlayEntry( cl_announcer, (const char *)g_Medals[ulMedal].szAnnouncerEntry );
Show on old repository browser