Skip to content

Commit

Permalink
in the debug mode terrain descriptions, also give the editor image
Browse files Browse the repository at this point in the history
This is helpful if you are trying to figure out what to put in the
<img> tags when inserting an image for a terrain in a help entry.
  • Loading branch information
cbeck88 committed Jul 18, 2014
1 parent b7a8b53 commit 9494754
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/help.cpp
Expand Up @@ -1362,6 +1362,12 @@ class terrain_topic_generator: public topic_generator
ss << "Light Bonus: " << type_.light_bonus(0) << "\n";

ss << type_.income_description();

if (type_.editor_image().empty()) { // Note: this is purely temporary to help make a different help entry
ss << "\nEditor Image: Empty\n";
} else {
ss << "\nEditor Image: " << type_.editor_image() << "\n";
}
}

return ss.str();
Expand Down

0 comments on commit 9494754

Please sign in to comment.