Changeset - r387:b66e8bc66817
[Not reviewed]
master
0 2 0
tron - 20 years ago 2004-11-14 08:11:57
tron@openttd.org
(svn r579) Remove now unused function memswap()
2 files changed with 0 insertions and 8 deletions:
0 comments (0 inline, 0 general)
functions.h
Show inline comments
 
@@ -83,13 +83,12 @@ bool CheckTileOwnership(uint tile);
 
StringID GetPlayerNameString(byte player, byte index);
 

	
 
/* standard */
 
void ShowInfo(const char *str);
 
void CDECL ShowInfoF(const char *str, ...);
 
void NORETURN CDECL error(const char *str, ...);
 
void memswap(void *a, void *b, size_t size);
 

	
 
/* ttd.c */
 
uint32 Random();
 
uint RandomRange(uint max);
 

	
 
void InitPlayerRandoms();
misc.c
Show inline comments
 
@@ -74,19 +74,12 @@ void InitPlayerRandoms()
 
	for (i=0; i<MAX_PLAYERS; i++) {
 
		_player_seeds[i][0]=InteractiveRandom();
 
		_player_seeds[i][1]=InteractiveRandom();
 
		}
 
}
 

	
 
void memswap(void *a, void *b, size_t size) {
 
	void *c = alloca(size);
 
	memcpy(c, a, size);
 
	memcpy(a, b, size);
 
	memcpy(b, c, size);
 
}
 

	
 
void SetDate(uint date)
 
{
 
	YearMonthDay ymd;
 
	ConvertDayToYMD(&ymd, _date = date);
 
	_cur_year = ymd.year;
 
	_cur_month = ymd.month;
0 comments (0 inline, 0 general)