player_gui.c
changeset 2642 cb99ff2e49a7
parent 2639 8a7342eb3a78
child 2676 2ba71e034d97
--- a/player_gui.c	Tue Nov 15 08:40:45 2005 +0000
+++ b/player_gui.c	Tue Nov 15 08:49:46 2005 +0000
@@ -342,7 +342,7 @@
 			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;
 		}