summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-10 23:20:11 +0000
committerrubidium <rubidium@openttd.org>2010-01-10 23:20:11 +0000
commitf51aac3523b60e2d89cd906d71cf86828ed95a00 (patch)
tree86820f981ae24c198e8259be4ac1469d34b90586 /src
parentd5fa74369ad5ceb3b14663626ed0465bc1a9f843 (diff)
downloadopenttd-f51aac3523b60e2d89cd906d71cf86828ed95a00.tar.xz
(svn r18777) -Codechange: remove some unused parameters from a function
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_storage.hpp2
-rw-r--r--src/ai/api/ai_execmode.cpp2
-rw-r--r--src/ai/api/ai_execmode.hpp2
-rw-r--r--src/ai/api/ai_object.cpp2
-rw-r--r--src/ai/api/ai_object.hpp2
-rw-r--r--src/ai/api/ai_testmode.cpp2
-rw-r--r--src/ai/api/ai_testmode.hpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/ai/ai_storage.hpp b/src/ai/ai_storage.hpp
index e61b5415c..2434782f6 100644
--- a/src/ai/ai_storage.hpp
+++ b/src/ai/ai_storage.hpp
@@ -26,7 +26,7 @@
/**
* The callback function for Mode-classes.
*/
-typedef bool (AIModeProc)(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs);
+typedef bool (AIModeProc)();
/**
* The storage for each AI. It keeps track of important information.
diff --git a/src/ai/api/ai_execmode.cpp b/src/ai/api/ai_execmode.cpp
index 3e6204253..680887770 100644
--- a/src/ai/api/ai_execmode.cpp
+++ b/src/ai/api/ai_execmode.cpp
@@ -15,7 +15,7 @@
#include "../../company_func.h"
#include "../ai_instance.hpp"
-bool AIExecMode::ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs)
+bool AIExecMode::ModeProc()
{
/* In execution mode we only return 'true', telling the DoCommand it
* should continue with the real execution of the command. */
diff --git a/src/ai/api/ai_execmode.hpp b/src/ai/api/ai_execmode.hpp
index 0e5057b9e..6fb2f8cef 100644
--- a/src/ai/api/ai_execmode.hpp
+++ b/src/ai/api/ai_execmode.hpp
@@ -33,7 +33,7 @@ protected:
/**
* The callback proc for Execute mode.
*/
- static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs);
+ static bool ModeProc();
public:
/**
diff --git a/src/ai/api/ai_object.cpp b/src/ai/api/ai_object.cpp
index e30f0c388..c9abc9ea4 100644
--- a/src/ai/api/ai_object.cpp
+++ b/src/ai/api/ai_object.cpp
@@ -222,7 +222,7 @@ bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint cmd, const c
}
/* Check what the callback wants us to do */
- if (GetDoCommandMode() != NULL && !GetDoCommandMode()(tile, p1, p2, cmd, res)) {
+ if (GetDoCommandMode() != NULL && !GetDoCommandMode()()) {
IncreaseDoCommandCosts(res.GetCost());
return true;
}
diff --git a/src/ai/api/ai_object.hpp b/src/ai/api/ai_object.hpp
index 21404d7e3..98343e870 100644
--- a/src/ai/api/ai_object.hpp
+++ b/src/ai/api/ai_object.hpp
@@ -27,7 +27,7 @@ typedef void (AISuspendCallbackProc)(class AIInstance *instance);
/**
* The callback function for Mode-classes.
*/
-typedef bool (AIModeProc)(TileIndex tile, uint32 p1, uint32 p2, uint cmd, CommandCost costs);
+typedef bool (AIModeProc)();
/**
* Uper-parent object of all API classes. You should never use this class in
diff --git a/src/ai/api/ai_testmode.cpp b/src/ai/api/ai_testmode.cpp
index dc7c73ec5..d7dc82ee3 100644
--- a/src/ai/api/ai_testmode.cpp
+++ b/src/ai/api/ai_testmode.cpp
@@ -15,7 +15,7 @@
#include "../../company_func.h"
#include "../ai_instance.hpp"
-bool AITestMode::ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs)
+bool AITestMode::ModeProc()
{
/* In test mode we only return 'false', telling the DoCommand it
* should stop after testing the command and return with that result. */
diff --git a/src/ai/api/ai_testmode.hpp b/src/ai/api/ai_testmode.hpp
index 44661d0f0..992cb42b5 100644
--- a/src/ai/api/ai_testmode.hpp
+++ b/src/ai/api/ai_testmode.hpp
@@ -35,7 +35,7 @@ protected:
/**
* The callback proc for Testing mode.
*/
- static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs);
+ static bool ModeProc();
public:
/**