Author: sveinung
Date: Sun Mar  6 16:16:18 2016
New Revision: 32193

URL: http://svn.gna.org/viewcvs/freeciv?rev=32193&view=rev
Log:
Say what unit did action selection in assertion.

See patch #7037

Modified:
    trunk/client/control.c

Modified: trunk/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/control.c?rev=32193&r1=32192&r2=32193&view=diff
==============================================================================
--- trunk/client/control.c      (original)
+++ trunk/client/control.c      Sun Mar  6 16:16:18 2016
@@ -347,7 +347,9 @@
   fc_assert_ret(punit->action_decision_tile);
 
   /* Only one action selection dialog at a time is supported. */
-  fc_assert(action_selection_in_progress_for == IDENTITY_NUMBER_ZERO);
+  fc_assert_msg(action_selection_in_progress_for == IDENTITY_NUMBER_ZERO,
+                "Unit %d started action selection before unit %d was done",
+                action_selection_in_progress_for, punit->id);
   action_selection_in_progress_for = punit->id;
 
   dsend_packet_unit_get_actions(&client.conn,


_______________________________________________
Freeciv-commits mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to