Set the amount of gold carried over to 0 in the carryover dialog if...

...it is negative.

That fixes bug #14765 without a string frezze. 

I am not sure if the bug report should be closed or kept open for a
stringchange after the release.
This commit is contained in:
Fabian Müller 2009-12-27 18:50:07 +00:00
parent 130400c060
commit 0029e7e9d0

View file

@ -235,7 +235,10 @@ void playsingle_controller::report_victory(
std::string goldmsg;
utils::string_map symbols;
symbols["gold"] = lexical_cast_default<std::string>(player_gold);
if (player_gold < 0) { symbols["gold"] = "0"; }
else { symbols["gold"] = lexical_cast_default<std::string>(player_gold); }
// Note that both strings are the same in english, but some languages will
// want to translate them differently.
if(end_level.carryover_add) {