Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Index: unit.cpp
  2. ===================================================================
  3. --- unit.cpp (revision 49587)
  4. +++ unit.cpp (working copy)
  5. @@ -481,6 +481,7 @@
  6. }
  7.  
  8. set_recruits(utils::split(cfg["extra_recruit"]));
  9. + cfg_.add_child("recall_filter", cfg.child_or_empty("recall_filter"));
  10.  
  11. /** @todo Are these modified by read? if not they can be removed. */
  12. getsHit_=0;
  13. Index: unit.hpp
  14. ===================================================================
  15. --- unit.hpp (revision 49587)
  16. +++ unit.hpp (working copy)
  17. @@ -131,6 +131,7 @@
  18. const std::vector<std::string>& recruits() const
  19. { return recruit_list_; }
  20. void set_recruits(const std::vector<std::string>& recruits);
  21. + config recall_filter() const { return cfg_.child_or_empty("recall_filter"); }
  22.  
  23. bool incapacitated() const { return get_state(STATE_PETRIFIED); }
  24. int total_movement() const { return max_movement_; }
  25. (END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement