buildfix !defined(REINCARNATION) [trunk only]

This commit is contained in:
nethack.allison
2006-09-23 17:31:19 +00:00
parent d9368a3c09
commit f713038a88
2 changed files with 15 additions and 3 deletions

View File

@@ -441,6 +441,7 @@ int whichset;
register int i;
switch(whichset) {
# ifdef REINCARNATION
case ROGUESET:
for (i = 0; i < MAXMCLASSES; i++)
@@ -452,11 +453,12 @@ int whichset;
for (i = 0; i < MAXOCLASSES; i++)
oc_syms[i] = r_oc_syms[i];
# if defined(MSDOS) && defined(USE_TILES)
# if defined(MSDOS) && defined(USE_TILES)
if (iflags.grmode) tileview(FALSE);
# endif
# endif
currentgraphics = ROGUESET;
break;
# endif
case PRIMARY:
default:
for (i = 0; i < MAXMCLASSES; i++)

View File

@@ -2335,8 +2335,10 @@ goodfruit:
wait_synch();
} else {
switch_symbols(TRUE);
# ifdef REINCARNATION
if (!initial && Is_rogue_level(&u.uz))
assign_graphics(ROGUESET);
# endif
}
}
return;
@@ -3149,6 +3151,9 @@ boolean setinitial,setfromfile;
rogueflag ? ROGUESET :
#endif
PRIMARY;
#ifndef REINCARNATION
if (rogueflag) return TRUE;
#endif
#ifdef ASCIIGRAPH
/* clear symset as a flag to read_sym_file() to build list */
symset_name = symset[which_set];
@@ -3208,8 +3213,11 @@ boolean setinitial,setfromfile;
}
/* these set default symbols and clear the handling value */
# ifdef REINCARNATION
if(rogueflag) init_r_symbols();
else init_l_symbols();
else
# endif
init_l_symbols();
if (!symset[which_set] && symset_name)
symset[which_set] = symset_name;
@@ -3225,9 +3233,11 @@ boolean setinitial,setfromfile;
}
switch_symbols(TRUE);
# ifdef REINCARNATION
if (Is_rogue_level(&u.uz))
assign_graphics(ROGUESET);
else
#endif
assign_graphics(PRIMARY);
need_redraw = TRUE;
#endif /*ASCIIGRAPH*/