Misc small cleanup

This commit is contained in:
LagoLunatic
2025-04-09 01:49:35 -04:00
parent 2ae6d899f7
commit 556e578f23
6 changed files with 14 additions and 14 deletions
@@ -626,6 +626,7 @@ struct J3DFog : public J3DFogInfo {
// J3DFog() { *getFogInfo() = j3dDefaultFogInfo; } // Produces the wrong codegen for mDoExt_backupMatBlock_c's constructor
J3DFog() { J3DFogInfo::operator=(j3dDefaultFogInfo); }
explicit J3DFog(const J3DFogInfo& info) { J3DFogInfo::operator=(info); }
~J3DFog() {}
J3DFogInfo* getFogInfo() { return (J3DFogInfo*)this; }
void load() const {
+7 -1
View File
@@ -2,6 +2,7 @@
#define D_A_TBOX_H
#include "f_op/f_op_actor.h"
#include "d/d_com_inf_game.h"
#include "d/d_cc_d.h"
#include "SSystem/SComponent/c_phase.h"
#include "d/d_bg_w.h"
@@ -41,7 +42,12 @@ public:
request_of_phase_process_class* getPhase() { return &mPhase; }
bool action() { return (this->*mActionFunc)(); }
void setAction(ActionFunc func) { mActionFunc = func; }
void deleteProc() {} // Maybe only used in the demo
void deleteProc() {
if (mpBgWCurrent != NULL) {
dComIfG_Bgsp()->Release(mpBgWCurrent);
}
mSmokeCB.remove();
}
inline BOOL draw();
BOOL execute();
+1 -1
View File
@@ -238,7 +238,7 @@ public:
void setScissor(f32, f32, f32, f32);
view_port_class* getViewPort() { return &mViewport; }
s8 getCameraID() { return mCameraID; }
int getCameraID() { return mCameraID; }
void setCameraID(int id) { mCameraID = id; }
void setMode(int mode) { mMode = mode; }