mail[Wesnoth-commits] r40353 - in /trunk: changelog src/gamestatus.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by terraninfo on December 23, 2009 - 18:59:
Author: crab
Date: Wed Dec 23 18:59:33 2009
New Revision: 40353

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40353&view=rev
Log:
changelog entry and a bugfix for above

Modified:
    trunk/changelog
    trunk/src/gamestatus.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=40353&r1=40352&r2=40353&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Wed Dec 23 18:59:33 2009
@@ -6,6 +6,9 @@
    * Add a new repeating button widget
    * Scrollbar buttons now keep scrolling when kept pressed down
    * Optimized the speed of the --new-widgets game load dialog
+ * WML Engine:
+   * Rework of semantics of [unit] tags. Added 'placement' attribute.
+     Fix bugs #14373, #14444, #14451 and other 'duplicated unit' issues in 
LoW
  * Miscellaneous and bugfixes:
    * Scrollbar containers now use the button super class
    * Allow a gui2 timer delete itself in its callback

Modified: trunk/src/gamestatus.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=40353&r1=40352&r2=40353&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Wed Dec 23 18:59:33 2009
@@ -823,7 +823,9 @@
                if (!id.empty()) {
                        if ( seen_ids_.find(id)!=seen_ids_.end() ) {
                                //seen before
-                               unit new_unit(&units_, u, true);
+                               config u_tmp = u;
+                               u_tmp["side"] = str_cast(side_);
+                               unit new_unit(&units_, u_tmp, true);
                                t_->recall_list().push_back(new_unit);
                        } else {
                                //not seen before




Related Messages


Powered by MHonArc, Updated Wed Dec 23 19:40:12 2009