diff options
author | yexo <yexo@openttd.org> | 2009-02-13 00:18:56 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-13 00:18:56 +0000 |
commit | 526edf35a595b674bc2bb82f9cdb230cdf684dac (patch) | |
tree | 2e6d9dc620998ec8afcfbde65e2adfcc957a594f /src/ai/api/ai_controller.hpp | |
parent | 7e1f40ccdcb6835754be7de0978978281851aeac (diff) | |
download | openttd-526edf35a595b674bc2bb82f9cdb230cdf684dac.tar.xz |
(svn r15462) -Change [NoAI]: Make AIController::GetTick() and AIController::GetSetting() static functions.
-Fix (r15460): ai_controller.hpp.sq was forgotten.
Diffstat (limited to 'src/ai/api/ai_controller.hpp')
-rw-r--r-- | src/ai/api/ai_controller.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_controller.hpp b/src/ai/api/ai_controller.hpp index d4e2bd6dc..5304039c2 100644 --- a/src/ai/api/ai_controller.hpp +++ b/src/ai/api/ai_controller.hpp @@ -41,14 +41,14 @@ public: * Find at which tick your AI currently is. * @return returns the current tick. */ - uint GetTick(); + static uint GetTick(); /** * Get the value of one of your settings you set via info.nut. * @param name The name of the setting. * @return the value for the setting, or -1 if the setting is not known. */ - int GetSetting(const char *name); + static int GetSetting(const char *name); /** * Change the minimum amount of time the AI should be put in suspend mode |