sw/src/game.cpp:LoadLevel: Rename q16ang -> ang

This commit is contained in:
NY00123 2020-04-04 01:40:01 +03:00 committed by Christoph Oelckers
parent d2e9595980
commit a178961a3e

View file

@ -590,8 +590,8 @@ void TerminateGame(void)
bool LoadLevel(const char *filename) bool LoadLevel(const char *filename)
{ {
int16_t q16ang; int16_t ang;
if (engineLoadBoard(filename, SW_SHAREWARE ? 1 : 0, (vec3_t *)&Player[0], &q16ang, &Player[0].cursectnum) == -1) if (engineLoadBoard(filename, SW_SHAREWARE ? 1 : 0, (vec3_t *)&Player[0], &ang, &Player[0].cursectnum) == -1)
{ {
Printf("Level not found: %s", filename); Printf("Level not found: %s", filename);
return false; return false;
@ -599,7 +599,7 @@ bool LoadLevel(const char *filename)
currentLevel = &mapList[Level]; currentLevel = &mapList[Level];
SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name); SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name);
STAT_NewLevel(currentLevel->labelName); STAT_NewLevel(currentLevel->labelName);
Player[0].q16ang = fix16_from_int(q16ang); Player[0].q16ang = fix16_from_int(ang);
return true; return true;
} }