(svn r19937) -Codechange: Move some fios related prototypes to fios.h

This commit is contained in:
frosch 2010-06-05 19:02:29 +00:00
parent 1d9a84a934
commit 13d43b8dab
7 changed files with 11 additions and 21 deletions

View File

@ -214,9 +214,6 @@ DEF_CONSOLE_CMD(ConScrollToTile)
return false;
}
extern void BuildFileList();
extern void SetFiosType(const byte fiostype);
/* Save the map to a file */
DEF_CONSOLE_CMD(ConSave)
{

View File

@ -15,7 +15,7 @@
#include "network/network_func.h"
#include "currency.h"
#include "window_func.h"
#include "functions.h"
#include "settings_type.h"
#include "date_func.h"
#include "vehicle_base.h"
#include "debug.h"
@ -220,7 +220,7 @@ static void OnNewMonth()
{
if (_settings_client.gui.autosave != 0 && (_cur_month % _autosave_months[_settings_client.gui.autosave]) == 0) {
_do_autosave = true;
RedrawAutosave();
SetWindowDirty(WC_STATUS_BAR, 0);
}
SetWindowClassesDirty(WC_CHEATS);

View File

@ -15,6 +15,7 @@
#include "strings_type.h"
#include "core/smallvec_type.hpp"
#include "core/enum_type.hpp"
#include "gfx_type.h"
enum FileSlots {
/**
@ -119,4 +120,10 @@ FiosType FiosGetSavegameListCallback(SaveLoadDialogMode mode, const char *file,
int CDECL CompareFiosItems(const FiosItem *a, const FiosItem *b);
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
extern const TextColour _fios_colours[];
void BuildFileList();
void SetFiosType(const byte fiostype);
#endif /* FIOS_H */

View File

@ -23,6 +23,7 @@
#include "window_func.h"
#include "tilehighlight_func.h"
#include "querystring_gui.h"
#include "engine_func.h"
#include "table/sprites.h"
#include "table/strings.h"
@ -152,8 +153,6 @@ static void MakeSortedSaveGameList()
QSortT(_fios_items.Get(sort_start), s_amount, CompareFiosItems);
}
extern void StartupEngines();
struct SaveLoadWindow : public QueryStringBaseWindow {
private:
FiosItem o_dir;
@ -493,11 +492,6 @@ void ShowSaveLoadDialog(SaveLoadDialogMode mode)
new SaveLoadWindow(sld, mode);
}
void RedrawAutosave()
{
SetWindowDirty(WC_STATUS_BAR, 0);
}
void SetFiosType(const byte fiostype)
{
switch (fiostype) {

View File

@ -41,8 +41,6 @@ void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
void AskExitGame();
void AskExitToGameMenu();
void RedrawAutosave();
int ttd_main(int argc, char *argv[]);
void HandleExitGameRequest();

View File

@ -65,12 +65,6 @@ void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
void BuildFileList();
void SetFiosType(const byte fiostype);
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
extern const TextColour _fios_colours[];
/* bridge_gui.cpp */
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);

View File

@ -1270,7 +1270,7 @@ void GameLoop()
if (_do_autosave) {
_do_autosave = false;
DoAutosave();
RedrawAutosave();
SetWindowDirty(WC_STATUS_BAR, 0);
}
/* switch game mode? */