(svn r18777) -Codechange: remove some unused parameters from a function

pull/155/head
rubidium 15 years ago
parent b0d7b6cef9
commit efbc73cf1e

@ -26,7 +26,7 @@
/** /**
* The callback function for Mode-classes. * 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. * The storage for each AI. It keeps track of important information.

@ -15,7 +15,7 @@
#include "../../company_func.h" #include "../../company_func.h"
#include "../ai_instance.hpp" #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 /* In execution mode we only return 'true', telling the DoCommand it
* should continue with the real execution of the command. */ * should continue with the real execution of the command. */

@ -33,7 +33,7 @@ protected:
/** /**
* The callback proc for Execute mode. * The callback proc for Execute mode.
*/ */
static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs); static bool ModeProc();
public: public:
/** /**

@ -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 */ /* Check what the callback wants us to do */
if (GetDoCommandMode() != NULL && !GetDoCommandMode()(tile, p1, p2, cmd, res)) { if (GetDoCommandMode() != NULL && !GetDoCommandMode()()) {
IncreaseDoCommandCosts(res.GetCost()); IncreaseDoCommandCosts(res.GetCost());
return true; return true;
} }

@ -27,7 +27,7 @@ typedef void (AISuspendCallbackProc)(class AIInstance *instance);
/** /**
* The callback function for Mode-classes. * 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 * Uper-parent object of all API classes. You should never use this class in

@ -15,7 +15,7 @@
#include "../../company_func.h" #include "../../company_func.h"
#include "../ai_instance.hpp" #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 /* In test mode we only return 'false', telling the DoCommand it
* should stop after testing the command and return with that result. */ * should stop after testing the command and return with that result. */

@ -35,7 +35,7 @@ protected:
/** /**
* The callback proc for Testing mode. * The callback proc for Testing mode.
*/ */
static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs); static bool ModeProc();
public: public:
/** /**

Loading…
Cancel
Save