mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 14:54:21 +00:00
Fixed players side name to same as leaders name (bug: #10114)
This commit is contained in:
parent
aa09d82c7d
commit
b998f1b974
@ -1,5 +1,7 @@
|
||||
Version 1.5.1+svn:
|
||||
* campaigns:
|
||||
* Tutorial
|
||||
* Fixed players side name to same as leaders name (bug: #10114)
|
||||
* formula AI:
|
||||
* Added variant_iterator to iterate over variant elements
|
||||
* Modified choose, filter, find and map functions to use variant_iterator,
|
||||
|
@ -76,6 +76,7 @@ border_size=1
|
||||
type=Fighter
|
||||
id=student
|
||||
name=_"Konrad"
|
||||
current_player=_"Konrad"
|
||||
canrecruit=yes
|
||||
side=1
|
||||
controller=human
|
||||
|
@ -293,6 +293,7 @@
|
||||
type=Fighter
|
||||
id=student
|
||||
name=_"Konrad"
|
||||
current_player=_"Konrad"
|
||||
canrecruit=yes
|
||||
side=1
|
||||
gold=123
|
||||
|
@ -1690,6 +1690,11 @@ namespace {
|
||||
const bool show = screen != NULL && !screen->fogged(loc);
|
||||
const bool animate = show && utils::string_bool(cfg["animate"], false);
|
||||
|
||||
// If new unit is leader set current player/visible side name
|
||||
// to units name
|
||||
if (new_unit.can_recruit())
|
||||
(*teams)[new_unit.side() - 1].set_current_player(new_unit.name());
|
||||
|
||||
units->erase(loc);
|
||||
units->add(new std::pair<gamemap::location,unit>(loc,new_unit));
|
||||
unit_mutations++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user