Unstored units are now added to the encountered list. (In case the
unit type is changed to something new.)
This commit is contained in:
Bruno Wolff III 2006-06-11 05:06:40 +00:00
parent add209188c
commit 37f2247fcb

View file

@ -1581,6 +1581,7 @@ bool event_handler::handle_event_command(const queued_event& event_info,
wassert(game_map != NULL);
wassert(status_ptr != NULL);
const unit u(game_data_ptr,units,game_map,status_ptr,teams,var);
preferences::encountered_units().insert(u.id());
gamemap::location loc(var);
if(loc.valid()) {
if(utils::string_bool(cfg["find_vacant"])) {