This commit is contained in:
Charles 2001-06-06 14:37:01 +00:00
parent 0eefb51d64
commit bc64aafd86
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,27 @@
/*=========================================================================
plurve.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PLURVE_H__
#include "platform\plurve.h"
#endif
void CNpcLoveBoatPlatform::postInit()
{
CNpcRaftPlatform::postInit();
sBBox boundingBox = m_modelGfx->GetBBox();
boundingBox.YMin += 32;
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
}

27
source/platform/plurve.h Normal file
View file

@ -0,0 +1,27 @@
/*=========================================================================
plurve.h
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PLURVE_H__
#define __PLATFORM_PLURVE_H__
#ifndef __PLATFORM_PRAFT_H__
#include "platform\praft.h"
#endif
class CNpcLoveBoatPlatform : public CNpcRaftPlatform
{
public:
virtual void postInit();
};
#endif