Changeset - r7796:061173f51595
[Not reviewed]
master
0 2 0
belugas - 17 years ago 2007-10-26 20:48:15
belugas@openttd.org
(svn r11346) -Codechange: Add marker has_newwater to the loaded grf features. Not in used yet.
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -3312,6 +3312,7 @@ static void GraphicsNew(byte *buf, int l
 
				return;
 
			}
 
			_coast_base = _cur_spriteid;
 
			_loaded_newgrf_features.has_newwater = true;
 
			break;
 

	
 
		case 0x10: // New airport sprites
 
@@ -5007,7 +5008,7 @@ static void ResetNewGRFData()
 
	_loaded_newgrf_features.has_2CC           = false;
 
	_loaded_newgrf_features.has_newhouses     = false;
 
	_loaded_newgrf_features.has_newindustries = false;
 

	
 
	_loaded_newgrf_features.has_newwater      = false;
 
	_signal_base = 0;
 
	_coast_base = 0;
 

	
src/newgrf.h
Show inline comments
 
@@ -92,6 +92,7 @@ struct GRFLoadedFeatures {
 
	bool has_2CC;             ///< Set if any vehicle is loaded which uses 2cc (two company colours).
 
	bool has_newhouses;       ///< Set if there are any newhouses loaded.
 
	bool has_newindustries;   ///< Set if there are any newindustries loaded.
 
	bool has_newwater;        ///< Set it there are any newwater grf loaded
 
};
 

	
 
/* Indicates which are the newgrf features currently loaded ingame */
0 comments (0 inline, 0 general)