fp = my_fopen(name, "r");
/* No such file */
- if (!fp) return (-1);
+ if (!fp) return -1;
/* Process the file */
char buf[1024];
struct tm *tp;
/* No restrictions */
- if (!check_time_flag) return (0);
+ if (!check_time_flag) return 0;
/* Check for time violation */
c = time((time_t *)0);
tp = localtime(&c);
/* Violation */
- if (days[tp->tm_wday][tp->tm_hour + 4] != 'X') return (1);
+ if (days[tp->tm_wday][tp->tm_hour + 4] != 'X') return 1;
#endif
/* Success */
- return (0);
+ return 0;
}
fp = my_fopen(buf, "r");
/* No file, no restrictions */
- if (!fp) return (0);
+ if (!fp) return 0;
/* Assume restrictions */
check_time_flag = TRUE;
#endif
/* Success */
- return (0);
+ return 0;
}
struct statstime st;
/* Success if not checking */
- if (!check_load_value) return (0);
+ if (!check_load_value) return 0;
/* Check the load */
if (0 == rstat("localhost", &st))
long val2 = (long)(check_load_value)* FSCALE;
/* Check for violation */
- if (val1 >= val2) return (1);
+ if (val1 >= val2) return 1;
}
#endif
/* Success */
- return (0);
+ return 0;
}
fp = my_fopen(buf, "r");
/* No file, no restrictions */
- if (!fp) return (0);
+ if (!fp) return 0;
/* Default load */
check_load_value = 100;
#endif
/* Success */
- return (0);
+ return 0;
}
/* Dump Day */
int day, hour, min;
- extract_day_hour_min(&day, &hour, &min);
+ extract_day_hour_min(creature_ptr, &day, &hour, &min);
if (day < MAX_DAYS) sprintf(buf, _("%d日目 %2d:%02d", "Day %d %2d:%02d"), day, hour, min);
else sprintf(buf, _("*****日目 %2d:%02d", "Day ***** %2d:%02d"), hour, min);
fprintf(fff, "\n");
return;
}
-
+
if (creature_ptr->arena_number > MAX_ARENA_MONS - 1)
{
fprintf(fff, _("\n 闘技場: チャンピオン\n", "\n Arena: Champion\n"));
(void)inkey();
/* Error */
- return (-1);
+ return -1;
}
(void)make_character_dump(creature_ptr, fff);
continue;
}
-
+
/* Notice "tag" requests */
if (str[6] != '<') continue;
update_creature(creature_ptr);
/* Initialize monster process */
- mproc_init();
+ mproc_init(creature_ptr->current_floor_ptr);
/* HACK -- reset the hackish flag */
current_world_ptr->is_loading_now = TRUE;
/*!
- * todo ここにp_ptrを追加すると関数ポインタ周りの収拾がつかなくなるので保留
+ * todo ここにplayer_typeを追加すると関数ポインタ周りの収拾がつかなくなるので保留
* @brief OSからのシグナルを受けて中断、終了する /
* Handle signals -- simple (interrupt and quit)
* @param sig 受け取ったシグナル