/*
* Macros for Keywords
*/
-#define FLG_ALL 0
-#define FLG_UNAWARE 1
-#define FLG_UNIDENTIFIED 2
-#define FLG_IDENTIFIED 3
-#define FLG_STAR_IDENTIFIED 4
-#define FLG_COLLECTING 5
-#define FLG_ARTIFACT 6
+#define FLG_ALL 0
+#define FLG_UNAWARE 1
+#define FLG_UNIDENTIFIED 2
+#define FLG_IDENTIFIED 3
+#define FLG_STAR_IDENTIFIED 4
+#define FLG_COLLECTING 5
+#define FLG_ARTIFACT 6
#define FLG_EGO 7
#define FLG_GOOD 10
-#define FLG_NAMELESS 11
+#define FLG_NAMELESS 11
#define FLG_AVERAGE 12
-#define FLG_WORTHLESS 13
+#define FLG_WORTHLESS 13
#define FLG_RARE 14
#define FLG_COMMON 15
#define FLG_BOOSTED 16
-#define FLG_MORE_DICE 17
-#define FLG_MORE_BONUS 18
+#define FLG_MORE_DICE 17
+#define FLG_MORE_BONUS 18
#define FLG_WANTED 19
#define FLG_UNIQUE 20
#define FLG_HUMAN 21
-#define FLG_UNREADABLE 22
+#define FLG_UNREADABLE 22
#define FLG_REALM1 23
#define FLG_REALM2 24
#define FLG_FIRST 25
HDC hdc;\r
MSG msg;\r
\r
- setlocale( LC_ALL, "ja_JP" );\r
+ setlocale(LC_ALL, "ja_JP.utf8");\r
\r
/* Unused */\r
(void)nCmdShow;\r
*/
static bool save_player_aux(char *name)
{
- bool ok = FALSE;
-
- int fd = -1;
-
- int mode = 0644;
-
+ bool ok = FALSE;
+ int fd = -1;
+ int mode = 0644;
/* No file yet */
fff = NULL;
-
/* File type is "SAVE" */
FILE_TYPE(FILE_TYPE_SAVE);
-
/* Grab permissions */
safe_setuid_grab();
void teleport_away_followable(MONSTER_IDX m_idx)
{
monster_type *m_ptr = &m_list[m_idx];
- int oldfy = m_ptr->fy;
- int oldfx = m_ptr->fx;
- bool old_ml = m_ptr->ml;
- int old_cdis = m_ptr->cdis;
+ POSITION oldfy = m_ptr->fy;
+ POSITION oldfx = m_ptr->fx;
+ bool old_ml = m_ptr->ml;
+ POSITION old_cdis = m_ptr->cdis;
teleport_away(m_idx, MAX_SIGHT * 2 + 5, 0L);
{
BIT_FLAGS flgs[TR_FLAG_SIZE];
object_type *o_ptr;
- int i;
+ INVENTORY_IDX i;
for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
{
return (0);
}
-
/*
* Hack -- attempt to open a file descriptor (create file)
* This function should fail if the file already exists
return (open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode));
#endif
-
}