Follow-up Comment #3, patch #3235 (project wesnoth):

Hello! Thanks for the patch.

1)
you can use unit::get_state(state_t state) instead of  unit::get_state(const
std::string &state), it'll be slightly faster.

2) same for set_state(state_t state) instead of set_state(const std::string
&state)

3) there's a problem - the value is initially ai_special="guardian", but if
you would make a known boolean state named "guardian", so it'd be written to
config as "guardian"="yes/no".  

Make sure you load the old value correctly, and make sure you can filter both
by new-style value and by old-style value correctly. You can save only as
new-style.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3235>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to