summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 08:49:46 +0000
committertron <tron@openttd.org>2005-11-15 08:49:46 +0000
commit84a16a0b30c3c8f1df9a3e9fa8c2bb1e88199403 (patch)
tree5408c5fefb49e90fec95ad27d0438500262d43c0 /player_gui.c
parentba9157fbbc00fb6c10200c27eab692c067531721 (diff)
downloadopenttd-84a16a0b30c3c8f1df9a3e9fa8c2bb1e88199403.tar.xz
(svn r3184) GB/SB
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player_gui.c b/player_gui.c
index eba18b143..3d97a2612 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -342,7 +342,7 @@ static void SelectPlayerFaceWndProc(Window *w, WindowEvent *e)
SetWindowDirty(w);
break;
case 7:
- WP(w,facesel_d).face = (InteractiveRandom() & 0x7FFFFFFF) + (WP(w,facesel_d).gender << 31);
+ WP(w,facesel_d).face = (WP(w,facesel_d).gender << 31) + GB(InteractiveRandom(), 0, 31);
SetWindowDirty(w);
break;
}