mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
This commit is contained in:
1
Makefile
1
Makefile
@@ -639,6 +639,7 @@ C_SOURCES += landscape.c
|
||||
C_SOURCES += main_gui.c
|
||||
C_SOURCES += map.c
|
||||
C_SOURCES += md5.c
|
||||
C_SOURCES += mersenne.c
|
||||
C_SOURCES += minilzo.c
|
||||
C_SOURCES += misc.c
|
||||
C_SOURCES += misc_cmd.c
|
||||
|
@@ -79,7 +79,7 @@ void ShowInfo(const char *str);
|
||||
void CDECL ShowInfoF(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
|
||||
|
@@ -69,4 +69,5 @@ uint32 RandomMT(void)
|
||||
|
||||
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)
|
||||
{
|
||||
/* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */
|
||||
return PATHFIND_HASH_TILE(key1);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Calculates a hash value for use in the NPF.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#ifndef TTD_H
|
||||
#define TTD_H
|
||||
#ifndef OPENTTD_H
|
||||
#define OPENTTD_H
|
||||
|
||||
#ifndef VARDEF
|
||||
#define VARDEF extern
|
||||
@@ -548,4 +548,4 @@ VARDEF byte _no_scroll;
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
#endif /* TTD_H */
|
||||
#endif /* OPENTTD_H */
|
||||
|
Reference in New Issue
Block a user