Skip to content

Commit

Permalink
Fix CompModels.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Dec 12, 2023
1 parent 7b942d8 commit e1c63cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/GameMP/CompModels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ extern void SetupCompModel_t(const CTString &strName)

}

// More 128 if else
// More if else ( fatal error C1061: compiler limit: blocks nested too deeply)
// Let's divide it in half

if (strName=="Neptune") {
Expand Down Expand Up @@ -2248,8 +2248,12 @@ extern void SetupCompModel_t(const CTString &strName)
_bHasFloor = TRUE;
_fFloorY = -1.0f;

} else {
}

if(!_bHasFloor) {
ThrowF_t(TRANS("Unknown model '%s'"), (const char *) strName);
} else {
_bHasFloor = FALSE;
}
}

Expand Down

0 comments on commit e1c63cc

Please sign in to comment.