Author: cazfi
Date: Fri Dec 11 12:40:05 2015
New Revision: 30947

URL: http://svn.gna.org/viewcvs/freeciv?rev=30947&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:
    branches/S2_6/client/climisc.c

Modified: branches/S2_6/client/climisc.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/climisc.c?rev=30947&r1=30946&r2=30947&view=diff
==============================================================================
--- branches/S2_6/client/climisc.c      (original)
+++ branches/S2_6/client/climisc.c      Fri Dec 11 12:40:05 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