# HG changeset patch # User belugas # Date 1193431695 0 # Node ID daa4d50847562285414a9fe7f456a515104d4471 # Parent 8ce3c983c7a304f982f60fcf4e529266c3446a9b (svn r11346) -Codechange: Add marker has_newwater to the loaded grf features. Not in used yet. diff -r 8ce3c983c7a3 -r daa4d5084756 src/newgrf.cpp --- a/src/newgrf.cpp Fri Oct 26 20:42:03 2007 +0000 +++ b/src/newgrf.cpp Fri Oct 26 20:48:15 2007 +0000 @@ -3312,6 +3312,7 @@ return; } _coast_base = _cur_spriteid; + _loaded_newgrf_features.has_newwater = true; break; case 0x10: // New airport sprites @@ -5007,7 +5008,7 @@ _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; diff -r 8ce3c983c7a3 -r daa4d5084756 src/newgrf.h --- a/src/newgrf.h Fri Oct 26 20:42:03 2007 +0000 +++ b/src/newgrf.h Fri Oct 26 20:48:15 2007 +0000 @@ -92,6 +92,7 @@ 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 */