1
0
Fork 0

(svn r22793) -Codechange: remove callback default to make clear they are not forgotten

release/1.2
rubidium 2011-08-21 12:51:18 +00:00
parent 5e7abe58f9
commit 6d51883a87
3 changed files with 3 additions and 3 deletions

View File

@ -1268,7 +1268,7 @@ DEF_CONSOLE_CMD(ConRescanNewGRF)
} }
TarScanner::DoScan(); TarScanner::DoScan();
ScanNewGRFFiles(); ScanNewGRFFiles(NULL);
return true; return true;
} }

View File

@ -114,7 +114,7 @@ public:
break; break;
case CONTENT_TYPE_NEWGRF: case CONTENT_TYPE_NEWGRF:
ScanNewGRFFiles(); ScanNewGRFFiles(NULL);
break; break;
case CONTENT_TYPE_SCENARIO: case CONTENT_TYPE_SCENARIO:

View File

@ -196,7 +196,7 @@ struct NewGRFScanCallback {
virtual void OnNewGRFsScanned() = 0; virtual void OnNewGRFsScanned() = 0;
}; };
void ScanNewGRFFiles(NewGRFScanCallback *callback = NULL); void ScanNewGRFFiles(NewGRFScanCallback *callback);
void CheckForMissingSprites(); void CheckForMissingSprites();
const GRFConfig *FindGRFConfig(uint32 grfid, FindGRFConfigMode mode, const uint8 *md5sum = NULL, uint32 desired_version = 0); const GRFConfig *FindGRFConfig(uint32 grfid, FindGRFConfigMode mode, const uint8 *md5sum = NULL, uint32 desired_version = 0);
GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF); GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF);