Author: cazfi
Date: Fri Dec 11 12:39:59 2015
New Revision: 30946

URL: http://svn.gna.org/viewcvs/freeciv?rev=30946&view=rev
Log:
Do not play sound effects for events of the earlier turns when they are resent 
from the cache.

See patch #4221

Modified:
    trunk/client/climisc.c

Modified: trunk/client/climisc.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/climisc.c?rev=30946&r1=30945&r2=30946&view=diff
==============================================================================
--- trunk/client/climisc.c      (original)
+++ trunk/client/climisc.c      Fri Dec 11 12:39:59 2015
@@ -1050,7 +1050,9 @@
     output_window_event(plain_text, tags, conn_id);
   }
 
-  play_sound_for_event(event);
+  if (turn == game.info.turn) {
+    play_sound_for_event(event);
+  }
 
   /* Free tags */
   text_tag_list_destroy(tags);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to