Changeset - r14646:051de492031c
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2010-02-25 09:43:00
peter1138@openttd.org
(svn r19235) -Add: [NewGRF] Add 2 bits of pseudo-random data for rail types, based on tile location.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_railtype.cpp
Show inline comments
 
@@ -5,28 +5,31 @@
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "variables.h"
 
#include "debug.h"
 
#include "strings_type.h"
 
#include "rail.h"
 
#include "road_map.h"
 
#include "newgrf.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_commons.h"
 
#include "newgrf_railtype.h"
 
#include "newgrf_spritegroup.h"
 
#include "core/bitmath_func.hpp"
 

	
 
static uint32 RailTypeGetRandomBits(const ResolverObject *object)
 
{
 
	return 0;
 
	TileIndex tile = object->u.routes.tile;
 
	uint tmp = CountBits(tile + (TileX(tile) + TileY(tile)) * TILE_SIZE);
 
	return GB(tmp, 0, 2);
 
}
 

	
 
static uint32 RailTypeGetTriggers(const ResolverObject *object)
 
{
 
	return 0;
 
}
 

	
 
static void RailTypeSetTriggers(const ResolverObject *object, int triggers)
 
{
 
}
 

	
 
static uint32 RailTypeGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available)
0 comments (0 inline, 0 general)