home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dead shoggoths corpse to "magic meat" that can now be "used" i.e. consumed for hitpoi...
[plomrogue]
/
src
/
misc.c
diff --git
a/src/misc.c
b/src/misc.c
index 466defa8b83cb59e4cf9c641e64f99633cf751ec..48ced07e635ead0f98b102380b416a735040cbd5 100644
(file)
--- a/
src/misc.c
+++ b/
src/misc.c
@@
-131,13
+131,21
@@
extern void unload_interface_conf()
free_keybindings(world.kb_winkeys.kbs);
while (0 != world.wmeta->active)
{
free_keybindings(world.kb_winkeys.kbs);
while (0 != world.wmeta->active)
{
- suspend_win(world.wmeta
, world.wmeta
->active);
+ suspend_win(world.wmeta->active);
}
free_winconfs();
}
}
free_winconfs();
}
+extern void reload_interface_conf()
+{
+ unload_interface_conf();
+ load_interface_conf();
+}
+
+
+
extern void update_log(char * text)
{
char * f_name = "update_log()";
extern void update_log(char * text)
{
char * f_name = "update_log()";
@@
-214,7
+222,8
@@
extern void turn_over(char action)
}
try_fclose(file_old, f_name);
exit_err(write_uint8(action, file_new), err_write);
}
try_fclose(file_old, f_name);
exit_err(write_uint8(action, file_new), err_write);
- if (is_command_id_shortdsc(action, "drop"))
+ if ( is_command_id_shortdsc(action, "drop")
+ || is_command_id_shortdsc(action, "use"))
{
uint8_t inventory_select = world.old_inventory_select;
exit_err(write_uint8(inventory_select, file_new), err_write);
{
uint8_t inventory_select = world.old_inventory_select;
exit_err(write_uint8(inventory_select, file_new), err_write);
@@
-228,7
+237,8
@@
extern void turn_over(char action)
{
if (0 < monster->lifepoints && 0 != monster->id)
{
{
if (0 < monster->lifepoints && 0 != monster->id)
{
- move_actor(monster, rrand() % 5);
+ char * sel = "\0NSEW";
+ move_actor(monster, sel[rrand() % 5]);
}
}
}
}
}
}