mirror of https://github.com/OpenTTD/OpenTTD
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
parent
c496d92c3e
commit
95463428c8
1
Makefile
1
Makefile
|
@ -639,6 +639,7 @@ C_SOURCES += landscape.c
|
||||||
C_SOURCES += main_gui.c
|
C_SOURCES += main_gui.c
|
||||||
C_SOURCES += map.c
|
C_SOURCES += map.c
|
||||||
C_SOURCES += md5.c
|
C_SOURCES += md5.c
|
||||||
|
C_SOURCES += mersenne.c
|
||||||
C_SOURCES += minilzo.c
|
C_SOURCES += minilzo.c
|
||||||
C_SOURCES += misc.c
|
C_SOURCES += misc.c
|
||||||
C_SOURCES += misc_cmd.c
|
C_SOURCES += misc_cmd.c
|
||||||
|
|
|
@ -79,7 +79,7 @@ void ShowInfo(const char *str);
|
||||||
void CDECL ShowInfoF(const char *str, ...);
|
void CDECL ShowInfoF(const char *str, ...);
|
||||||
void NORETURN CDECL error(const char *str, ...);
|
void NORETURN CDECL error(const char *str, ...);
|
||||||
|
|
||||||
/* ttd.c */
|
/* openttd.c */
|
||||||
|
|
||||||
// **************
|
// **************
|
||||||
// * Warning: DO NOT enable this unless you understand what it does
|
// * Warning: DO NOT enable this unless you understand what it does
|
||||||
|
|
|
@ -69,4 +69,5 @@ uint32 RandomMT(void)
|
||||||
|
|
||||||
void SeedMT(uint32 seed) {}
|
void SeedMT(uint32 seed) {}
|
||||||
|
|
||||||
#endif
|
#endif /* MERSENNE_TWISTER */
|
||||||
|
|
||||||
|
|
2
npf.c
2
npf.c
|
@ -71,11 +71,13 @@ bool IsEndOfLine(TileIndex tile, Trackdir trackdir, RailType enginetype)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
static uint NTPHash(uint key1, uint key2)
|
static uint NTPHash(uint key1, uint key2)
|
||||||
{
|
{
|
||||||
/* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */
|
/* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */
|
||||||
return PATHFIND_HASH_TILE(key1);
|
return PATHFIND_HASH_TILE(key1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates a hash value for use in the NPF.
|
* Calculates a hash value for use in the NPF.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef TTD_H
|
#ifndef OPENTTD_H
|
||||||
#define TTD_H
|
#define OPENTTD_H
|
||||||
|
|
||||||
#ifndef VARDEF
|
#ifndef VARDEF
|
||||||
#define VARDEF extern
|
#define VARDEF extern
|
||||||
|
@ -548,4 +548,4 @@ VARDEF byte _no_scroll;
|
||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
|
|
||||||
#endif /* TTD_H */
|
#endif /* OPENTTD_H */
|
||||||
|
|
Loading…
Reference in New Issue