mirror of https://github.com/PrimeDecomp/prime.git
parent
236045c563
commit
b29e5337fc
|
@ -47,6 +47,11 @@ public:
|
|||
rstl::pair< CColor, CColor > GetDoorColors(int idx, const CMapWorldInfo&, float alpha) const;
|
||||
void Draw(int, const CMapWorldInfo&, float, bool) const;
|
||||
|
||||
|
||||
static bool IsDoorType(EMappableObjectType type) {
|
||||
return type >= kMOT_BlueDoor && type <= kMOT_PlasmaDoorFloor2;
|
||||
}
|
||||
|
||||
private:
|
||||
EMappableObjectType x0_type;
|
||||
EVisMode x4_visibilityMode;
|
||||
|
|
|
@ -118,8 +118,7 @@ void CMappableObject::PostConstruct(const void*) { x10_transform = AdjustTransfo
|
|||
|
||||
void CMappableObject::Draw(int curArea, const CMapWorldInfo& mwInfo, float alpha,
|
||||
bool needsVtxLoad) const {
|
||||
bool flag = -1 < x0_type && x0_type < 0x10;
|
||||
if (flag) {
|
||||
if (IsDoorType(x0_type) == true) {
|
||||
rstl::pair< CColor, CColor > colors = GetDoorColors(curArea, mwInfo, alpha);
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
if (needsVtxLoad) {
|
||||
|
|
Loading…
Reference in New Issue