/* Purpose: Angband utilities -BEN- */
#include "angband.h"
+#include "util.h"
#include "monsterrace-hook.h"
+#include "view-mainwindow.h"
+#include "quest.h"
+#include "floor.h"
+#include "world.h"
static int num_more = 0;
{
/* Skip the backslash */
str++;
-
- /* Paranoia */
if (!(*str)) break;
/* Macro Trigger */
/* No sound */
if (!use_music) return;
- if(ambush_flag)
+ if(p_ptr->ambush_flag)
{
play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_AMBUSH);
return;
char *t;
char buf[1024];
- if (world_monster) return;
+ if (current_world_ptr->timewalk_m_idx) return;
/* Hack -- Reset */
if (!msg_flag) {
/* No message */
if (!msg) return;
-
- /* Paranoia */
if (n > 1000) return;
/* Copy it */
bool get_string(concptr prompt, char *buf, int len)
{
bool res;
-
- /* Paranoia */
msg_print(NULL);
/* Display prompt */
handle_stuff();
num_more = 0;
}
-
- /* Paranoia */
msg_print(NULL);
if (!rogue_like_commands)
*/
bool get_com(concptr prompt, char *command, bool z_escape)
{
- /* Paranoia */
msg_print(NULL);
/* Display a prompt */
/* Use that prompt */
prompt = tmp;
}
-
- /* Paranoia */
msg_print(NULL);
/* Display prompt */
continue;
}
-
- /* Paranoia */
if (!cmd) continue;
concptr s;
object_type *o_ptr = &inventory[i];
-
- /* Skip non-objects */
if (!o_ptr->k_idx) continue;
/* No inscription */
}
}
}
-
- /* Paranoia */
if (d == 5) d = 0;
/* Return direction */
size_t len = strlen(src);
size_t ret = len;
-
- /* Paranoia */
if (bufsize == 0) return ret;
/* Truncate */
/* Return normal keycode */
return (int)((unsigned char)key);
}
+