Fix increased number of NewGRFs support.

Improve error handling if multiplayer limit is exceeded.
This commit is contained in:
Jonathan G Rennison
2017-02-14 00:35:15 +00:00
parent 7e89b9789f
commit f89e8b76d6
8 changed files with 24 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ size_t FioGetPos()
* @param slot Index of queried file.
* @return Name of the file.
*/
const char *FioGetFilename(uint8 slot)
const char *FioGetFilename(uint slot)
{
return _fio.shortnames[slot];
}
@@ -112,7 +112,7 @@ static void FioRestoreFile(int slot)
* @param slot Slot number of the new file.
* @param pos New absolute position in the new file.
*/
void FioSeekToFile(uint8 slot, size_t pos)
void FioSeekToFile(uint slot, size_t pos)
{
FILE *f;
#if defined(LIMITED_FDS)
@@ -247,7 +247,7 @@ static void FioFreeHandle()
* @param filename Name of the file at the disk.
* @param subdir The sub directory to search this file in.
*/
void FioOpenFile(int slot, const char *filename, Subdirectory subdir)
void FioOpenFile(uint slot, const char *filename, Subdirectory subdir)
{
FILE *f;