Skip to content

Commit

Permalink
Added note= attribute to [objectives], for hints and other footer info.
Browse files Browse the repository at this point in the history
  • Loading branch information
ott2 committed May 2, 2005
1 parent 0a1b6a2 commit 3bd8d2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CVS HEAD:
* better diagnostics on parsing: file inclusion sequence
* fixed items appearing in traits description (#12603)
* preserve order of unit traits so no more quick,resilient but 33 vs 34 HP
* added note= attribute to [objectives], displayed as footer, eg. for hints
* campaign improvements:
* Eastern Invasion:
* fixed Dacyn not being [recall]-ed in Unexpected Appearance (#10619)
Expand Down
3 changes: 3 additions & 0 deletions src/game_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ bool event_handler::handle_event_command(const queued_event& event_info,
const std::string lose_str = "#";

const t_string& summary = cfg["summary"];
const t_string& note = cfg["note"];
const size_t side = lexical_cast_default<size_t>(cfg["side"], 0);
bool silent = cfg["silent"] == "yes";

Expand Down Expand Up @@ -614,6 +615,8 @@ bool event_handler::handle_event_command(const queued_event& event_info,
objs += lose_string + "\n";
objs += lose_objectives + "\n";
}
if(!note.empty())
objs += note + "\n";

if(side == 0) {
for(std::vector<team>::iterator itor = teams->begin();
Expand Down

0 comments on commit 3bd8d2b

Please sign in to comment.