Changeset - r15288:c9665f6c8c50
[Not reviewed]
master
0 7 0
frosch - 14 years ago 2010-06-05 19:02:29
frosch@openttd.org
(svn r19937) -Codechange: Move some fios related prototypes to fios.h
7 files changed with 11 insertions and 21 deletions:
0 comments (0 inline, 0 general)
src/console_cmds.cpp
Show inline comments
 
@@ -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)
 
{
src/date.cpp
Show inline comments
 
@@ -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);
src/fios.h
Show inline comments
 
@@ -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(Sav
 

	
 
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 */
src/fios_gui.cpp
Show inline comments
 
@@ -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(SaveLoadDialogMo
 
	new SaveLoadWindow(sld, mode);
 
}
 

	
 
void RedrawAutosave()
 
{
 
	SetWindowDirty(WC_STATUS_BAR, 0);
 
}
 

	
 
void SetFiosType(const byte fiostype)
 
{
 
	switch (fiostype) {
src/functions.h
Show inline comments
 
@@ -41,8 +41,6 @@ void ShowFeederIncomeAnimation(int x, in
 
void AskExitGame();
 
void AskExitToGameMenu();
 

	
 
void RedrawAutosave();
 

	
 
int ttd_main(int argc, char *argv[]);
 
void HandleExitGameRequest();
 

	
src/gui.h
Show inline comments
 
@@ -65,12 +65,6 @@ void ShowErrorMessage(StringID summary_m
 

	
 
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);
 

	
src/openttd.cpp
Show inline comments
 
@@ -1270,7 +1270,7 @@ void GameLoop()
 
	if (_do_autosave) {
 
		_do_autosave = false;
 
		DoAutosave();
 
		RedrawAutosave();
 
		SetWindowDirty(WC_STATUS_BAR, 0);
 
	}
 

	
 
	/* switch game mode? */
0 comments (0 inline, 0 general)