mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r11292) -Fix [FS#1350]: don't desync when generating random faces. Patch by SmatZ.
This commit is contained in:
parent
1043cc5e1d
commit
e0461fcd6a
@ -193,7 +193,7 @@ static inline void ScaleAllPlayerFaceBits(PlayerFace &pf)
|
|||||||
*/
|
*/
|
||||||
static inline void RandomPlayerFaceBits(PlayerFace &pf, GenderEthnicity ge, bool adv)
|
static inline void RandomPlayerFaceBits(PlayerFace &pf, GenderEthnicity ge, bool adv)
|
||||||
{
|
{
|
||||||
pf = Random(); // random all player face bits
|
pf = InteractiveRandom(); // random all player face bits
|
||||||
|
|
||||||
/* scale ge: 0 == GE_WM, 1 == GE_WF, 2 == GE_BM, 3 == GE_BF (and maybe in future: ...) */
|
/* scale ge: 0 == GE_WM, 1 == GE_WF, 2 == GE_BM, 3 == GE_BF (and maybe in future: ...) */
|
||||||
ge = (GenderEthnicity)((uint)ge % GE_END);
|
ge = (GenderEthnicity)((uint)ge % GE_END);
|
||||||
|
Loading…
Reference in New Issue
Block a user