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:
parent
130400c060
commit
0029e7e9d0
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue