Changeset - r7741:93702189eccf
[Not reviewed]
master
0 1 0
glx - 17 years ago 2007-10-16 20:59:53
glx@openttd.org
(svn r11278) -Fix [FS#1342] (r11269): modulo result can be negative for signed int
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/player_face.h
Show inline comments
 
@@ -196,7 +196,7 @@ static inline void RandomPlayerFaceBits(
 
	pf = Random(); // random all player face bits
 

	
 
	/* scale ge: 0 == GE_WM, 1 == GE_WF, 2 == GE_BM, 3 == GE_BF (and maybe in future: ...) */
 
	ge = (GenderEthnicity)(ge % GE_END);
 
	ge = (GenderEthnicity)((uint)ge % GE_END);
 

	
 
	/* set the gender (and ethnicity) for the new player face */
 
	if (adv) {
0 comments (0 inline, 0 general)