summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-10-26 20:48:15 +0000
committerbelugas <belugas@openttd.org>2007-10-26 20:48:15 +0000
commitb5973f12e6553e094f2d94ccc6efcde54cc684d8 (patch)
tree24dbee60b9c8bcc8dbf5d06eed759edc5848aedd /src
parent411b1ff9db9f5d5e6a24b136356d72f4518414c9 (diff)
downloadopenttd-b5973f12e6553e094f2d94ccc6efcde54cc684d8.tar.xz
(svn r11346) -Codechange: Add marker has_newwater to the loaded grf features. Not in used yet.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp3
-rw-r--r--src/newgrf.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index abbf325eb..9052adb63 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3312,6 +3312,7 @@ static void GraphicsNew(byte *buf, int len)
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;
diff --git a/src/newgrf.h b/src/newgrf.h
index 7fc95380f..93245b390 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -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 */