Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: unit.cpp
- ===================================================================
- --- unit.cpp (revision 49587)
- +++ unit.cpp (working copy)
- @@ -481,6 +481,7 @@
- }
- set_recruits(utils::split(cfg["extra_recruit"]));
- + cfg_.add_child("recall_filter", cfg.child_or_empty("recall_filter"));
- /** @todo Are these modified by read? if not they can be removed. */
- getsHit_=0;
- Index: unit.hpp
- ===================================================================
- --- unit.hpp (revision 49587)
- +++ unit.hpp (working copy)
- @@ -131,6 +131,7 @@
- const std::vector<std::string>& recruits() const
- { return recruit_list_; }
- void set_recruits(const std::vector<std::string>& recruits);
- + config recall_filter() const { return cfg_.child_or_empty("recall_filter"); }
- bool incapacitated() const { return get_state(STATE_PETRIFIED); }
- int total_movement() const { return max_movement_; }
- (END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement