Changeset - r3532:6c6f890ba951
[Not reviewed]
master
0 1 0
matthijs - 18 years ago 2006-04-12 15:08:27
matthijs@openttd.org
(svn r4389) -Fix: [NPF] Don't mark tiles when debugging in multiplayer, this will cause desyncs.
1 file changed with 6 insertions and 2 deletions:
npf.c
6
2
0 comments (0 inline, 0 general)
npf.c
Show inline comments
 
@@ -14,6 +14,7 @@
 
#include "tile.h"
 
#include "depot.h"
 
#include "tunnel_map.h"
 
#include "network.h"
 

	
 
static AyStar _npf_aystar;
 

	
 
@@ -205,13 +206,16 @@ static uint NPFSlopeCost(AyStarNode* cur
 
	 * there is only one level of steepness... */
 
}
 

	
 
/* Mark tiles by mowing the grass when npf debug level >= 1 */
 
/**
 
 * Mark tiles by mowing the grass when npf debug level >= 1.
 
 * Will not work for multiplayer games, since it can (will) cause desyncs.
 
 */
 
static void NPFMarkTile(TileIndex tile)
 
{
 
#ifdef NO_DEBUG_MESSAGES
 
	return;
 
#else
 
	if (_debug_npf_level < 1) return;
 
	if (_debug_npf_level < 1 || _networking) return;
 
	switch (GetTileType(tile)) {
 
		case MP_RAILWAY:
 
			/* DEBUG: mark visited tiles by mowing the grass under them ;-) */
0 comments (0 inline, 0 general)