Handle boulder-option in config file

Setting boulder in config file did not work correctly in post-3.4.3
code, due to the symset changes.
This commit is contained in:
Pasi Kallinen
2015-05-01 22:03:13 +03:00
parent 40080817ce
commit 8f639796d5
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -515,6 +515,7 @@ E void FDECL(switch_symbols, (int));
E void FDECL(assign_graphics, (int)); E void FDECL(assign_graphics, (int));
E void NDECL(init_r_symbols); E void NDECL(init_r_symbols);
E void NDECL(init_symbols); E void NDECL(init_symbols);
E void NDECL(update_bouldersym);
E void NDECL(init_showsyms); E void NDECL(init_showsyms);
E void NDECL(init_l_symbols); E void NDECL(init_l_symbols);
E void FDECL(clear_symsetentry, (int,BOOLEAN_P)); E void FDECL(clear_symsetentry, (int,BOOLEAN_P));
+8
View File
@@ -350,6 +350,14 @@ init_symbols()
init_r_symbols(); init_r_symbols();
} }
void
update_bouldersym()
{
showsyms[SYM_BOULDER + SYM_OFF_X] = iflags.bouldersym;
l_syms[SYM_BOULDER + SYM_OFF_X] = iflags.bouldersym;
r_syms[SYM_BOULDER + SYM_OFF_X] = iflags.bouldersym;
}
void void
init_showsyms() init_showsyms()
{ {
+2
View File
@@ -744,6 +744,8 @@ initoptions_finish()
/* result in the player's preferred fruit [better than "\033"]. */ /* result in the player's preferred fruit [better than "\033"]. */
obj_descr[SLIME_MOLD].oc_name = "fruit"; obj_descr[SLIME_MOLD].oc_name = "fruit";
if (iflags.bouldersym) update_bouldersym();
reglyph_darkroom(); reglyph_darkroom();
return; return;