summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-12 17:11:45 +0000
committertruebrain <truebrain@openttd.org>2009-01-12 17:11:45 +0000
commita3dd7506d377b1434f913bd65c019eed52b64b6e (patch)
treeced1a262eb143ad6e64ec02f4a4c89835c0c32fd /src/misc.cpp
parent9294f9616866b9778c22076c19b5a32b4f85f788 (diff)
downloadopenttd-a3dd7506d377b1434f913bd65c019eed52b64b6e.tar.xz
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index bccaf2c62..12ba72434 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -10,7 +10,7 @@
#include "vehicle_gui.h"
#include "variables.h"
#include "cheat_func.h"
-#include "ai/ai.h"
+#include "ai/ai.hpp"
#include "newgrf_house.h"
#include "cargotype.h"
#include "group.h"
@@ -26,6 +26,7 @@
#include "core/alloc_type.hpp"
#include "gamelog.h"
#include "animated_tile_func.h"
+#include "settings_type.h"
#include "tilehighlight_func.h"
#include "core/bitmath_func.hpp"
#include "network/network_func.h"
@@ -34,6 +35,7 @@
#include "table/sprites.h"
extern TileIndex _cur_tileloop_tile;
+extern void MakeNewgameSettingsLive();
void InitializeVehicles();
void InitializeWaypoints();
@@ -68,7 +70,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date)
_realtime_tick = 0;
_date_fract = 0;
_cur_tileloop_tile = 0;
- _settings_game = _settings_newgame;
+ MakeNewgameSettingsLive();
if (reset_date) {
SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1));
@@ -101,7 +103,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date)
InitializeNPF();
InitializeCompanies();
- AI_Initialize();
+ AI::Initialize();
InitializeCheats();
InitTextEffects();