From b2355272b879adf09492de94f61d1cdae0fded45 Mon Sep 17 00:00:00 2001 From: MaddMugsy Date: Fri, 18 Aug 2006 01:14:49 +0000 Subject: [PATCH] -fixed breaklights not working in Drassen Mine sector git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@453 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameVersion.cpp | 4 ++-- TileEngine/physics.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GameVersion.cpp b/GameVersion.cpp index f59109119..f1d659796 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -23,12 +23,12 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" }; #else //RELEASE BUILD VERSION - INT16 zVersionLabel[256] = { L"Release v1.13.449" }; + INT16 zVersionLabel[256] = { L"Release v1.13.453" }; #endif -INT8 czVersionNumber[16] = { "Build 06.08.16" }; +INT8 czVersionNumber[16] = { "Build 06.08.17" }; INT16 zTrackingNumber[16] = { L"Z" }; diff --git a/TileEngine/physics.cpp b/TileEngine/physics.cpp index 0f7a0161b..1e704e2f3 100644 --- a/TileEngine/physics.cpp +++ b/TileEngine/physics.cpp @@ -2512,7 +2512,7 @@ DebugMsg(TOPIC_JA2,DBG_LEVEL_3,String("physics.cpp line 2337")); if ( Item[pObject->Obj.usItem].flare ) { //if the light object will ber created OFF the ground - if( pObject->Position.z > 0 ) + if( pObject->Position.z > 0 && FindBuilding(pObject->sGridNo) ) { //we cannot create the light source above the ground, or on a roof. The system doesnt support it. AddItemToPool( pObject->sGridNo, &( pObject->Obj ), 1, 1, 0, -1 );