equal
deleted
inserted
replaced
4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "debug.h" |
7 #include "debug.h" |
8 #include "namegen.h" |
8 #include "namegen.h" |
|
9 #include "string_func.h" |
|
10 |
9 #include "table/namegen.h" |
11 #include "table/namegen.h" |
10 #include "string_func.h" |
|
11 |
12 |
12 static inline uint32 SeedChance(int shift_by, int max, uint32 seed) |
13 static inline uint32 SeedChance(int shift_by, int max, uint32 seed) |
13 { |
14 { |
14 return (GB(seed, shift_by, 16) * max) >> 16; |
15 return (GB(seed, shift_by, 16) * max) >> 16; |
15 } |
16 } |