Fix errors for msvc

Use less strict compiler flags instead of modifying source code

Add ugly defines so MSVC stops complaining about zero length arrays
This commit is contained in:
roeming
2026-01-18 18:11:54 -05:00
committed by Jeffrey Crowell
parent ef14b2b932
commit 81d679d207
105 changed files with 1871 additions and 1760 deletions
+26 -26
View File
@@ -1360,22 +1360,22 @@ int daNpcBouS_c::EvCut_BousIntroSumo1(int i_staffId) {
if (eventManager.getIsAddvance(i_staffId)) {
switch (*cutName) {
case '0x0001':
case MULTI_CHAR('0x0001'):
setLookMode(LOOK_PLAYER_TALK);
mActorMngrs[0].entry(daPy_getPlayerActorClass());
break;
case '0x0002':
case '0x0003':
case '0x0005':
case '0x0006':
case '0x0007':
case '0x0008':
case '0x0009':
case MULTI_CHAR('0x0002'):
case MULTI_CHAR('0x0003'):
case MULTI_CHAR('0x0005'):
case MULTI_CHAR('0x0006'):
case MULTI_CHAR('0x0007'):
case MULTI_CHAR('0x0008'):
case MULTI_CHAR('0x0009'):
initTalk(9, NULL);
break;
case '0x0004':
case MULTI_CHAR('0x0004'):
setExpressionAnm(ANM_FH_TALK_B, true);
break;
@@ -1396,17 +1396,17 @@ int daNpcBouS_c::EvCut_BousIntroSumo1(int i_staffId) {
}
switch (*cutName) {
case '0x0001':
case '0x0004':
case MULTI_CHAR('0x0001'):
case MULTI_CHAR('0x0004'):
return 1;
case '0x0002':
case '0x0003':
case '0x0005':
case '0x0006':
case '0x0007':
case '0x0008':
case '0x0009':
case MULTI_CHAR('0x0002'):
case MULTI_CHAR('0x0003'):
case MULTI_CHAR('0x0005'):
case MULTI_CHAR('0x0006'):
case MULTI_CHAR('0x0007'):
case MULTI_CHAR('0x0008'):
case MULTI_CHAR('0x0009'):
if (talkProc(NULL, TRUE, NULL)) {
s32 choiceNo = mFlow.getChoiceNo();
OS_REPORT("二択分岐 %s\n", choiceNo == 0 ? "はい" : "いいえ");
@@ -1434,7 +1434,7 @@ int daNpcBouS_c::EvCut_BousIntroSumo2(int i_staffId) {
if (eventManager.getIsAddvance(i_staffId)) {
switch (*cutName) {
case '0x0001':
case MULTI_CHAR('0x0001'):
initTalk(9, NULL);
setLookMode(LOOK_PLAYER_TALK);
mActorMngrs[0].entry(daPy_getPlayerActorClass());
@@ -1456,7 +1456,7 @@ int daNpcBouS_c::EvCut_BousIntroSumo2(int i_staffId) {
}
switch (*cutName) {
case '0x0001':
case MULTI_CHAR('0x0001'):
if (mCurAngle.y == fopAcM_searchPlayerAngleY(this)) {
if (talkProc(NULL, TRUE, NULL)) {
int choiceNo = mFlow.getChoiceNo();
@@ -1489,15 +1489,15 @@ int daNpcBouS_c::EvCut_BousIntroSumo3(int i_staffId) {
if (eventManager.getIsAddvance(i_staffId)) {
switch (*cutName) {
case '0x0001':
case MULTI_CHAR('0x0001'):
setLookMode(LOOK_PLAYER_TALK);
mActorMngrs[0].entry(daPy_getPlayerActorClass());
break;
case '0x0003':
case MULTI_CHAR('0x0003'):
setMotion(MOT_WALK, -1.0f, 0);
// fallthrough
case '0x0002':
case MULTI_CHAR('0x0002'):
setAngle(-0x2AAA);
initTalk(9, NULL);
break;
@@ -1521,16 +1521,16 @@ int daNpcBouS_c::EvCut_BousIntroSumo3(int i_staffId) {
}
switch (*cutName) {
case '0x0001':
case MULTI_CHAR('0x0001'):
return 1;
case '0x0002':
case MULTI_CHAR('0x0002'):
if (talkProc(NULL, TRUE, NULL)) {
return 1;
}
break;
case '0x0003': {
case MULTI_CHAR('0x0003'): {
cXyz* pos = dComIfGp_evmng_getMyXyzP(i_staffId, "pos");
if (pos != NULL) {
if (cLib_chaseAngleS(&shape_angle.y, cLib_targetAngleY(&current.pos, pos), 0x100)) {