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
+4 -2
View File
@@ -441,6 +441,7 @@ int whichset;
register int i; register int i;
switch(whichset) { switch(whichset) {
# ifdef REINCARNATION
case ROGUESET: case ROGUESET:
for (i = 0; i < MAXMCLASSES; i++) for (i = 0; i < MAXMCLASSES; i++)
@@ -452,11 +453,12 @@ int whichset;
for (i = 0; i < MAXOCLASSES; i++) for (i = 0; i < MAXOCLASSES; i++)
oc_syms[i] = r_oc_syms[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); if (iflags.grmode) tileview(FALSE);
# endif # endif
currentgraphics = ROGUESET; currentgraphics = ROGUESET;
break; break;
# endif
case PRIMARY: case PRIMARY:
default: default:
for (i = 0; i < MAXMCLASSES; i++) for (i = 0; i < MAXMCLASSES; i++)
+11 -1
View File
@@ -2335,8 +2335,10 @@ goodfruit:
wait_synch(); wait_synch();
} else { } else {
switch_symbols(TRUE); switch_symbols(TRUE);
# ifdef REINCARNATION
if (!initial && Is_rogue_level(&u.uz)) if (!initial && Is_rogue_level(&u.uz))
assign_graphics(ROGUESET); assign_graphics(ROGUESET);
# endif
} }
} }
return; return;
@@ -3149,6 +3151,9 @@ boolean setinitial,setfromfile;
rogueflag ? ROGUESET : rogueflag ? ROGUESET :
#endif #endif
PRIMARY; PRIMARY;
#ifndef REINCARNATION
if (rogueflag) return TRUE;
#endif
#ifdef ASCIIGRAPH #ifdef ASCIIGRAPH
/* clear symset as a flag to read_sym_file() to build list */ /* clear symset as a flag to read_sym_file() to build list */
symset_name = symset[which_set]; symset_name = symset[which_set];
@@ -3208,8 +3213,11 @@ boolean setinitial,setfromfile;
} }
/* these set default symbols and clear the handling value */ /* these set default symbols and clear the handling value */
# ifdef REINCARNATION
if(rogueflag) init_r_symbols(); if(rogueflag) init_r_symbols();
else init_l_symbols(); else
# endif
init_l_symbols();
if (!symset[which_set] && symset_name) if (!symset[which_set] && symset_name)
symset[which_set] = symset_name; symset[which_set] = symset_name;
@@ -3225,9 +3233,11 @@ boolean setinitial,setfromfile;
} }
switch_symbols(TRUE); switch_symbols(TRUE);
# ifdef REINCARNATION
if (Is_rogue_level(&u.uz)) if (Is_rogue_level(&u.uz))
assign_graphics(ROGUESET); assign_graphics(ROGUESET);
else else
#endif
assign_graphics(PRIMARY); assign_graphics(PRIMARY);
need_redraw = TRUE; need_redraw = TRUE;
#endif /*ASCIIGRAPH*/ #endif /*ASCIIGRAPH*/