mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r2973) Move a function declaration somewhere where it belongs
This commit is contained in:
1
ai/ai.c
1
ai/ai.c
@@ -6,6 +6,7 @@
|
||||
#include "../command.h"
|
||||
#include "../network.h"
|
||||
#include "ai.h"
|
||||
#include "default/default.h"
|
||||
|
||||
/**
|
||||
* Dequeues commands put in the queue via AI_PutCommandInQueue.
|
||||
|
@@ -17,6 +17,7 @@
|
||||
#include "../../airport.h"
|
||||
#include "../../depot.h"
|
||||
#include "../../variables.h"
|
||||
#include "default.h"
|
||||
|
||||
// remove some day perhaps?
|
||||
static Player *_cur_ai_player;
|
||||
|
8
ai/default/default.h
Normal file
8
ai/default/default.h
Normal file
@@ -0,0 +1,8 @@
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef DEFAULT_H
|
||||
#define DEFAULT_H
|
||||
|
||||
void AiDoGameLoop(Player*);
|
||||
|
||||
#endif
|
1
player.h
1
player.h
@@ -197,7 +197,6 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player);
|
||||
void GetNameOfOwner(PlayerID owner, TileIndex tile);
|
||||
int64 CalculateCompanyValue(Player *p);
|
||||
void InvalidatePlayerWindows(Player *p);
|
||||
void AiDoGameLoop(Player *p);
|
||||
void UpdatePlayerMoney32(Player *p);
|
||||
#define FOR_ALL_PLAYERS(p) for(p=_players; p != endof(_players); p++)
|
||||
|
||||
|
Reference in New Issue
Block a user