mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 05:08:57 -04:00
Add helper macros to simplify fopAcM_ct-related version differences
This commit is contained in:
@@ -374,9 +374,7 @@ cPhs_State daNpc_Md_c::create() {
|
||||
strcpy(mModelArcName, l_arc_name);
|
||||
int heapSizeIdx = 0;
|
||||
|
||||
#if VERSION > VERSION_DEMO
|
||||
fopAcM_ct(this, daNpc_Md_c);
|
||||
#endif
|
||||
fopAcM_ct_Retail(this, daNpc_Md_c);
|
||||
|
||||
mType = fopAcM_GetParam(this) >> 0x08;
|
||||
if ((int)mType == -2) { // Bug: Comparing unsigned value with -2 is always false.
|
||||
@@ -430,9 +428,7 @@ cPhs_State daNpc_Md_c::create() {
|
||||
cPhs_State phase_state = dComIfG_resLoad(&mPhase, mModelArcName);
|
||||
m313D = 1;
|
||||
if (phase_state == cPhs_COMPLEATE_e) {
|
||||
#if VERSION == VERSION_DEMO
|
||||
fopAcM_ct(this, daNpc_Md_c);
|
||||
#endif
|
||||
fopAcM_ct_Demo(this, daNpc_Md_c);
|
||||
|
||||
if (dComIfGp_getCb1Player() != NULL) {
|
||||
return cPhs_ERROR_e;
|
||||
|
||||
Reference in New Issue
Block a user