From 3745ff7338a7e3c9c4bff665f6952fd71c384ff8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 7 Feb 2011 22:22:20 +0000 Subject: [PATCH] (svn r22015) -Codechange: move yet another pair of methods from functions.h --- src/command.cpp | 2 +- src/economy.cpp | 1 - src/functions.h | 3 --- src/texteff.hpp | 4 ++++ 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index dd98674870..2dd3693345 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -19,7 +19,7 @@ #include "newgrf_storage.h" #include "strings_func.h" #include "gfx_func.h" -#include "functions.h" +#include "texteff.hpp" #include "town.h" #include "date_func.h" #include "company_func.h" diff --git a/src/economy.cpp b/src/economy.cpp index 2b09a8d260..c9e55653ab 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -31,7 +31,6 @@ #include "object.h" #include "group.h" #include "strings_func.h" -#include "functions.h" #include "window_func.h" #include "date_func.h" #include "vehicle_func.h" diff --git a/src/functions.h b/src/functions.h index da7e21c193..42cdcd240e 100644 --- a/src/functions.h +++ b/src/functions.h @@ -23,7 +23,4 @@ void TileLoopClearHelper(TileIndex tile); /* misc functions */ void MarkTileDirtyByTile(TileIndex tile); -void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); -void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); - #endif /* FUNCTIONS_H */ diff --git a/src/texteff.hpp b/src/texteff.hpp index ca6a892888..b9762c3fed 100644 --- a/src/texteff.hpp +++ b/src/texteff.hpp @@ -12,6 +12,7 @@ #ifndef TEXTEFF_HPP #define TEXTEFF_HPP +#include "economy_type.h" #include "gfx_type.h" #include "strings_type.h" @@ -39,4 +40,7 @@ TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID col void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour); void HideFillingPercent(TextEffectID *te_id); +void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); +void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); + #endif /* TEXTEFF_HPP */