Author: sveinung
Date: Sun Mar 6 16:38:36 2016
New Revision: 32194
URL: http://svn.gna.org/viewcvs/freeciv?rev=32194&view=rev
Log:
Say what unit did action selection in assertion.
See patch #7037
Modified:
branches/S2_6/client/control.c
Modified: branches/S2_6/client/control.c
URL:
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.c?rev=32194&r1=32193&r2=32194&view=diff
==============================================================================
--- branches/S2_6/client/control.c (original)
+++ branches/S2_6/client/control.c Sun Mar 6 16:38:36 2016
@@ -325,7 +325,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