src/namegen.cpp
branchnoai
changeset 9724 b39bc69bb2f2
parent 9723 eee46cb39750
child 9826 9707ad4c9b60
equal deleted inserted replaced
9723:eee46cb39750 9724:b39bc69bb2f2
     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 }