diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 1a7ee4718..8ceeb16c0 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -586,8 +586,8 @@ void TerminateGame(void) bool LoadLevel(const char *filename) { - int16_t q16ang; - if (engineLoadBoard(filename, SW_SHAREWARE ? 1 : 0, (vec3_t *)&Player[0], &q16ang, &Player[0].cursectnum) == -1) + int16_t ang; + if (engineLoadBoard(filename, SW_SHAREWARE ? 1 : 0, (vec3_t *)&Player[0], &ang, &Player[0].cursectnum) == -1) { Printf("Level not found: %s", filename); return false; @@ -596,7 +596,7 @@ bool LoadLevel(const char *filename) SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name); STAT_NewLevel(currentLevel->labelName); return true; - Player[0].q16ang = fix16_from_int(q16ang); + Player[0].q16ang = fix16_from_int(ang); } void LoadDemoRun(void)