1
0
Fork 0

(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)

release/0.4.5
Darkvater 2005-07-15 21:28:26 +00:00
parent c496d92c3e
commit 95463428c8
6 changed files with 82 additions and 77 deletions

View File

@ -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

View File

@ -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

View File

@ -69,4 +69,5 @@ uint32 RandomMT(void)
void SeedMT(uint32 seed) {} void SeedMT(uint32 seed) {}
#endif #endif /* MERSENNE_TWISTER */

2
npf.c
View File

@ -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.

View File

@ -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 */

View File

@ -984,3 +984,4 @@ void InitializeLanguagePacks(void)
if (!ReadLanguagePack(def)) if (!ReadLanguagePack(def))
error("can't read language pack '%s'", dl->ent[def].file); error("can't read language pack '%s'", dl->ent[def].file);
} }