summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-01-14 18:30:26 +0000
committerfrosch <frosch@openttd.org>2017-01-14 18:30:26 +0000
commit7b553d255ee5a5e5be3e4c1c8a0d56504cfdc418 (patch)
tree8cb6fcf4083fcf3e98864fbb40f7e323706f90d7 /src/newgrf.cpp
parent08b4255b677259e3e3f9039b903bd5a62a909da6 (diff)
downloadopenttd-7b553d255ee5a5e5be3e4c1c8a0d56504cfdc418.tar.xz
(svn r27732) -Change: Turn the message about 'missing baseset sprites' from a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index e0246bdf6..14593b7e3 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5694,35 +5694,6 @@ static void SkipAct5(ByteReader *buf)
}
/**
- * Check whether we are (obviously) missing some of the extra
- * (Action 0x05) sprites that we like to use.
- * When missing sprites are found a warning will be shown.
- */
-void CheckForMissingSprites()
-{
- /* Don't break out quickly, but allow to check the other
- * sprites as well, so we can give the best information. */
- bool missing = false;
- for (uint8 i = 0; i < lengthof(_action5_types); i++) {
- const Action5Type *type = &_action5_types[i];
- if (type->block_type == A5BLOCK_INVALID) continue;
-
- for (uint j = 0; j < type->max_sprites; j++) {
- if (!SpriteExists(type->sprite_base + j)) {
- DEBUG(grf, 0, "%s sprites are missing", type->name);
- missing = true;
- /* No need to log more of the same. */
- break;
- }
- }
- }
-
- if (missing) {
- ShowErrorMessage(IsReleasedVersion() ? STR_NEWGRF_ERROR_MISSING_SPRITES : STR_NEWGRF_ERROR_MISSING_SPRITES_UNSTABLE, INVALID_STRING_ID, WL_CRITICAL);
- }
-}
-
-/**
* Reads a variable common to VarAction2 and Action7/9/D.
*
* Returns VarAction2 variable 'param' resp. Action7/9/D variable '0x80 + param'.