mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 20:43:07 -04:00
Various debug conditional compilation cleanup (#2915)
* Global: Define DEBUG as 0 if not already defined * Clean up DEBUG-guarded code
This commit is contained in:
@@ -17,7 +17,7 @@ static int daObjKWheel00_MoveBGDelete(daObjKWheel00_c*);
|
||||
static int daObjKWheel00_MoveBGExecute(daObjKWheel00_c*);
|
||||
static int daObjKWheel00_MoveBGDraw(daObjKWheel00_c*);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
static daObjKWheel00_HIO_c l_HIO;
|
||||
|
||||
daObjKWheel00_HIO_c::daObjKWheel00_HIO_c() {
|
||||
@@ -54,7 +54,7 @@ int daObjKWheel00_c::create1st() {
|
||||
if(phase == cPhs_ERROR_e)
|
||||
return phase;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// "Water wheel(Lv3)"
|
||||
l_HIO.entryHIO("水車(Lv3)");
|
||||
#endif
|
||||
@@ -135,7 +135,7 @@ int daObjKWheel00_c::Create() {
|
||||
|
||||
mZAngularVelocity = 0;
|
||||
if(getSwNo() != 0xFF && fopAcM_isSwitch(this, getSwNo())) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if(getArg0())
|
||||
mZAngularVelocity = l_HIO.mTargetZAngularSpeed;
|
||||
else
|
||||
@@ -192,7 +192,7 @@ int daObjKWheel00_c::Execute(Mtx** i_mtx) {
|
||||
// Only draw particles and play SFX if gear is moving
|
||||
if(mZAngularVelocity != 0) {
|
||||
// Increase angular velocity via an arithmetic sequence with a ratio of 2
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if(mZAngularVelocity > 0) {
|
||||
if(mZAngularVelocity < l_HIO.mTargetZAngularSpeed)
|
||||
mZAngularVelocity += l_HIO.mZAngularAcceleration;
|
||||
@@ -324,7 +324,7 @@ int daObjKWheel00_c::Draw() {
|
||||
int daObjKWheel00_c::Delete() {
|
||||
dComIfG_resDelete(this, l_arcName[m_type]);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.removeHIO();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user