summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-21 12:51:18 +0000
committerrubidium <rubidium@openttd.org>2011-08-21 12:51:18 +0000
commit6d51883a87be1d67e7cdad6e6207004b5a11df8f (patch)
tree01dfeaec1768179a76230259aa403700364c9c6d /src
parent5e7abe58f9aa5d4cfee31d043544405213cb121f (diff)
downloadopenttd-6d51883a87be1d67e7cdad6e6207004b5a11df8f.tar.xz
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp2
-rw-r--r--src/network/network_content_gui.cpp2
-rw-r--r--src/newgrf_config.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index cf2444aac..b5f8d2e47 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1268,7 +1268,7 @@ DEF_CONSOLE_CMD(ConRescanNewGRF)
}
TarScanner::DoScan();
- ScanNewGRFFiles();
+ ScanNewGRFFiles(NULL);
return true;
}
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 498ef4918..3e901116d 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -114,7 +114,7 @@ public:
break;
case CONTENT_TYPE_NEWGRF:
- ScanNewGRFFiles();
+ ScanNewGRFFiles(NULL);
break;
case CONTENT_TYPE_SCENARIO:
diff --git a/src/newgrf_config.h b/src/newgrf_config.h
index 2561af158..9d1f8c507 100644
--- a/src/newgrf_config.h
+++ b/src/newgrf_config.h
@@ -196,7 +196,7 @@ struct NewGRFScanCallback {
virtual void OnNewGRFsScanned() = 0;
};
-void ScanNewGRFFiles(NewGRFScanCallback *callback = NULL);
+void ScanNewGRFFiles(NewGRFScanCallback *callback);
void CheckForMissingSprites();
const GRFConfig *FindGRFConfig(uint32 grfid, FindGRFConfigMode mode, const uint8 *md5sum = NULL, uint32 desired_version = 0);
GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF);