mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
Minor fixes and cleanup
This commit is contained in:
@@ -82,7 +82,7 @@ void CMapArea::PostConstruct() {
|
||||
for (u32 i = 0; i < x28_mappableObjCount; ++i) {
|
||||
CMappableObject& mapObj = m_mappableObjects[i];
|
||||
if (CMappableObject::IsDoorType(mapObj.GetType()))
|
||||
mapObj.m_doorSurface.emplace(ctx);
|
||||
mapObj.CreateDoorSurface(ctx);
|
||||
}
|
||||
return true;
|
||||
} BooTrace);
|
||||
|
||||
@@ -13,7 +13,6 @@ class CStateManager;
|
||||
class CMapWorldInfo;
|
||||
|
||||
class CMappableObject {
|
||||
friend class CMapArea;
|
||||
static boo::ObjToken<boo::IGraphicsBufferS> g_doorVbo;
|
||||
static boo::ObjToken<boo::IGraphicsBufferS> g_doorIbo;
|
||||
|
||||
@@ -83,6 +82,7 @@ public:
|
||||
bool IsDoorConnectedToVisitedArea(const CStateManager&) const;
|
||||
bool IsVisibleToAutoMapper(bool worldVis, const CMapWorldInfo& mwInfo) const;
|
||||
bool GetIsSeen() const;
|
||||
void CreateDoorSurface(boo::IGraphicsDataFactory::Context& ctx) { m_doorSurface.emplace(ctx); }
|
||||
|
||||
static void ReadAutoMapperTweaks(const ITweakAutoMapper&);
|
||||
static bool GetTweakIsMapVisibilityCheat();
|
||||
|
||||
Reference in New Issue
Block a user