mail[Wesnoth-commits] r44807 - /trunk/src/scripting/lua.cpp


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

Header


Content

Posted by guillaume . melquiond on July 28, 2010 - 19:18:
Author: silene
Date: Wed Jul 28 19:18:39 2010
New Revision: 44807

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44807&view=rev
Log:
Marked hitpoints as modifiable.

Modified:
    trunk/src/scripting/lua.cpp

Modified: trunk/src/scripting/lua.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scripting/lua.cpp?rev=44807&r1=44806&r2=44807&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Wed Jul 28 19:18:39 2010
@@ -847,6 +847,7 @@
        // Find the corresponding attribute.
        modify_int_attrib("side", u.set_side(value));
        modify_int_attrib("moves", u.set_movement(value));
+       modify_int_attrib("hitpoints", u.set_hitpoints(value));
        modify_bool_attrib("resting", u.set_resting(value != 0));
        modify_tstring_attrib("name", u.set_name(value));
        modify_string_attrib("role", u.set_role(value));




Related Messages


Powered by MHonArc, Updated Wed Jul 28 19:20:16 2010