From 96c04a2228df6ff0caecb509b1be59757a5b5a11 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 25 Apr 2001 20:52:36 +0000 Subject: [PATCH] --- source/platform/platform.cpp | 12 ++++++++++++ tools/Data/bin/MkLevel.ini | 1 + tools/MapEdit/platform.ini | 3 +++ 3 files changed, 16 insertions(+) diff --git a/source/platform/platform.cpp b/source/platform/platform.cpp index 4bd9012dc..564647b25 100644 --- a/source/platform/platform.cpp +++ b/source/platform/platform.cpp @@ -87,6 +87,10 @@ #include "platform\pbranch.h" #endif +#ifndef __PLATFORM_PCART_H__ +#include "platform\pcart.h" +#endif + #ifndef __PLATFORM_PPLAYER_H__ #include "platform\pplayer.h" #endif @@ -171,6 +175,12 @@ CNpcPlatform *CNpcPlatform::Create(sThingPlatform *ThisPlatform) break; } + case NPC_CART_PLATFORM: + { + platform = new ("cart platform") CNpcCartPlatform; + break; + } + default: { ASSERT( 0 ); @@ -269,6 +279,8 @@ void CNpcPlatform::init() m_lifetime = 0; m_lifetimeType = m_data[m_type].lifetimeType; + m_isShuttingDown = false; + m_npcPath.initPath(); } diff --git a/tools/Data/bin/MkLevel.ini b/tools/Data/bin/MkLevel.ini index 1b8b5c471..59f5b2d3b 100644 --- a/tools/Data/bin/MkLevel.ini +++ b/tools/Data/bin/MkLevel.ini @@ -84,6 +84,7 @@ FishHook1=5 FishHook2=5 SwingingFishHook=10 BendyBranch=11 +CoasterCar=9 ################################################ # Triggers diff --git a/tools/MapEdit/platform.ini b/tools/MapEdit/platform.ini index 9bbafc8c8..096e18c3f 100644 --- a/tools/MapEdit/platform.ini +++ b/tools/MapEdit/platform.ini @@ -29,3 +29,6 @@ Gfx=..\..\Graphics\platforms\FishHook3\FishHook3.gin [BendyBranch] Gfx=..\..\Graphics\platforms\Bendybranch\bendybranch.gin + +[CoasterCar] +Gfx=..\..\Graphics\platforms\CoasterCar\coastercar.gin