(svn r4153) -Codechange. Changed NPF_TILE_LENGTH into an enum and moved it out of variables.h. Just a drop in the bucket, but it is a start
This commit is contained in:
		
							
								
								
									
										7
									
								
								npf.h
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								npf.h
									
									
									
									
									
								
							@@ -8,7 +8,6 @@
 | 
				
			|||||||
#include "station.h"
 | 
					#include "station.h"
 | 
				
			||||||
#include "vehicle.h"
 | 
					#include "vehicle.h"
 | 
				
			||||||
#include "tile.h"
 | 
					#include "tile.h"
 | 
				
			||||||
#include "variables.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
//mowing grass
 | 
					//mowing grass
 | 
				
			||||||
enum {
 | 
					enum {
 | 
				
			||||||
@@ -19,6 +18,12 @@ enum {
 | 
				
			|||||||
	NPF_HASH_HALFMASK = (1 << NPF_HASH_HALFBITS) - 1
 | 
						NPF_HASH_HALFMASK = (1 << NPF_HASH_HALFBITS) - 1
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* For new pathfinding. Define here so it is globally available without having
 | 
				
			||||||
 | 
					 * to include npf.h */
 | 
				
			||||||
 | 
					enum {
 | 
				
			||||||
 | 
						NPF_TILE_LENGTH = 100
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum {
 | 
					enum {
 | 
				
			||||||
	/** This penalty is the equivalent of "inifite", which means that paths that
 | 
						/** This penalty is the equivalent of "inifite", which means that paths that
 | 
				
			||||||
	 * get this penalty will be chosen, but only if there is no other route
 | 
						 * get this penalty will be chosen, but only if there is no other route
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,7 @@
 | 
				
			|||||||
#include "command.h"
 | 
					#include "command.h"
 | 
				
			||||||
#include "console.h"
 | 
					#include "console.h"
 | 
				
			||||||
#include "saveload.h"
 | 
					#include "saveload.h"
 | 
				
			||||||
 | 
					#include "npf.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** The patch values that are used for new games and/or modified in config file */
 | 
					/** The patch values that are used for new games and/or modified in config file */
 | 
				
			||||||
Patches _patches_newgame;
 | 
					Patches _patches_newgame;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -417,10 +417,6 @@ VARDEF byte _vehicle_design_names;
 | 
				
			|||||||
/* tunnelbridge */
 | 
					/* tunnelbridge */
 | 
				
			||||||
#define MAX_BRIDGES 13
 | 
					#define MAX_BRIDGES 13
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* For new pathfinding. Define here so it is globally available without having
 | 
					 | 
				
			||||||
 * to include npf.h */
 | 
					 | 
				
			||||||
#define NPF_TILE_LENGTH 100
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Forking stuff */
 | 
					/* Forking stuff */
 | 
				
			||||||
VARDEF bool _dedicated_forks;
 | 
					VARDEF bool _dedicated_forks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user