URL:
<http://gna.org/bugs/?11197>
Summary: [unit] spawning of Elvish Druid et al doesn't set
genders properly
Project: Battle for Wesnoth
Submitted by: shadowmaster
Submitted on: Monday 03/03/2008 at 12:47
Category: Bug
Severity: 2 - Minor
Priority: 4
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.3.x, 1.4.x, SVN trunk
Operating System: All
_______________________________________________________
Details:
On Wesnoth 1.3.x, 1.4.0 and SVN trunk, when units are spawned using the
[unit] WML tag at scenario event level, their gender is set to male by
default unless random_gender=yes attribute is applied. In the default case
(random_gender=no), the construction of the unit object in the game code
seems to take by default gender=male, unless in the same [unit] WML tag a
gender= is specified. This works fine for most units, including those which
have both male and female variations (i.e. Elvish Archer).
However, the result is awry for units which have only female variations. For
example, Elvish Druid. This code:
[event]
name=start
[unit]
x,y=1,1
type=Elvish Druid
description=Lily
side=1
[/unit]
[/event]
Spawns an Elvish Druid at 1,1 with gender = male, which can be tested by
having a look at a saved game after the unit has been spawned. Although this
might not be noticed by most users, since the unit behaves and looks like a
proper female unit, the translations go wrong when the race to which it
pertains has different translations for the "female" and "male" race names
(the case of elves at the moment). This won't be noticed by English player,
but it will be noticed on languages which use direct gender-specific
constructs, such as Spanish and French.
This is not a bug in the translation engine, only in the unit construction
mechanism. I tried to fix it, but gave up after hacking all the unit.cpp
unit::unit() methods (the constructors which take a gender that is
unit_race::MALE by default). The problem must be in that file, but in inner
code, besides the constructor.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11197>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs