Changeset - r14482:36a094b18e75
[Not reviewed]
master
0 2 0
yexo - 15 years ago 2010-02-08 23:05:29
yexo@openttd.org
(svn r19063) -Codechange: type in constant name (andythenorth)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/industrytype.h
Show inline comments
 
@@ -19,13 +19,13 @@
 
#include "landscape_type.h"
 
#include "strings_type.h"
 
#include "cargo_type.h"
 

	
 
enum {
 
	CLEAN_RANDOMSOUNDS,    ///< Free the dynamically allocated sounds table
 
	CLEAN_TILELSAYOUT,     ///< Free the dynamically allocated tile layout structure
 
	CLEAN_TILELAYOUT,      ///< Free the dynamically allocated tile layout structure
 
};
 

	
 
enum IndustryLifeType {
 
	INDUSTRYLIFE_BLACK_HOLE =      0, ///< Like power plants and banks
 
	INDUSTRYLIFE_EXTRACTIVE = 1 << 0, ///< Like mines
 
	INDUSTRYLIFE_ORGANIC    = 1 << 1, ///< Like forests
src/newgrf.cpp
Show inline comments
 
@@ -5665,13 +5665,13 @@ static void ResetCustomIndustries()
 
				/* We need to remove the sounds array */
 
				if (HasBit(ind->cleanup_flag, CLEAN_RANDOMSOUNDS)) {
 
					free((void*)ind->random_sounds);
 
				}
 

	
 
				/* We need to remove the tiles layouts */
 
				if (HasBit(ind->cleanup_flag, CLEAN_TILELSAYOUT) && ind->table != NULL) {
 
				if (HasBit(ind->cleanup_flag, CLEAN_TILELAYOUT) && ind->table != NULL) {
 
					for (int j = 0; j < ind->num_table; j++) {
 
						/* remove the individual layouts */
 
						free((void*)ind->table[j]);
 
					}
 
					/* remove the layouts pointers */
 
					free((void*)ind->table);
0 comments (0 inline, 0 general)