Strictify race enum

- This incidentally fixes a lot of things that were broken in the previous commit due to the magic values changing
This commit is contained in:
2014-12-03 20:11:14 -05:00
parent 5b7649543f
commit 13116980fb
15 changed files with 196 additions and 173 deletions

View File

@@ -470,12 +470,13 @@ void display_party()
case eMainStatus::ALIVE:
if (i == current_active_pc) {
//Draw in race
if (univ.party[i].race == 0)
if(univ.party[i].race == eRace::HUMAN)
win_draw_string(mainPtr,pc_race_rect,"Human ",eTextMode::CENTRE,style);
if (univ.party[i].race == 1)
if(univ.party[i].race == eRace::NEPHIL)
win_draw_string(mainPtr,pc_race_rect,"Nephilim ",eTextMode::CENTRE,style);
if (univ.party[i].race == 2)
if(univ.party[i].race == eRace::SLITH)
win_draw_string(mainPtr,pc_race_rect,"Slithzerikai ",eTextMode::CENTRE,style);
// TODO: Vahnatai
// Draw in skills
sprintf((char *) to_draw, "Skills:");