Mercurial > hg > openttd
changeset 17984:a37557517b38 draft
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 21 Aug 2011 12:51:18 +0000 |
parents | a751f24b9952 |
children | b01820fe3edf |
files | src/console_cmds.cpp src/network/network_content_gui.cpp src/newgrf_config.h |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1268,7 +1268,7 @@ } TarScanner::DoScan(); - ScanNewGRFFiles(); + ScanNewGRFFiles(NULL); return true; }
--- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -114,7 +114,7 @@ break; case CONTENT_TYPE_NEWGRF: - ScanNewGRFFiles(); + ScanNewGRFFiles(NULL); break; case CONTENT_TYPE_SCENARIO:
--- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -196,7 +196,7 @@ 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);