• R/O
  • SSH
  • HTTPS

xangband: 提交


Commit MetaInfo

修訂1905 (tree)
時間2013-03-21 17:09:47
作者iks

Log Message

Modify to initialize stat_match array

Change Summary

差異

--- TinyAngband/trunk/src/birth.c (revision 1904)
+++ TinyAngband/trunk/src/birth.c (revision 1905)
@@ -3270,8 +3270,6 @@
32703270 char buf[80];
32713271
32723272
3273-#ifdef ALLOW_AUTOROLLER
3274-
32753273 s16b stat_limit[A_MAX];
32763274 s32b stat_match[A_MAX];
32773275 s32b auto_round = 0L;
@@ -3284,10 +3282,9 @@
32843282 {
32853283 /* Save the minimum stat */
32863284 stat_limit[i] = initial_stat[p_ptr->pclass][i];
3285+ stat_match[i] = 0;
32873286 }
32883287
3289-#endif /* ALLOW_AUTOROLLER */
3290-
32913288 /* Clean up */
32923289 clear_from(10);
32933290
@@ -3364,12 +3361,9 @@
33643361 {
33653362 auto_round = 1;
33663363
3367- if (autoroller)
3364+ for( i = 0; i < 6; i ++)
33683365 {
3369- for( i = 0; i < 6; i ++)
3370- {
3371- stat_match[i] = 0;
3372- }
3366+ stat_match[i] = 0;
33733367 }
33743368 }
33753369
--- TinyAngband/trunk/src/z-config.h (revision 1904)
+++ TinyAngband/trunk/src/z-config.h (revision 1905)
@@ -226,12 +226,7 @@
226226 */
227227 #define ALLOW_MACROS
228228
229-/*
230- * OPTION: Allow characteres to be "auto-rolled"
231- */
232-#define ALLOW_AUTOROLLER
233229
234-
235230 /*
236231 * OPTION: Allow monsters to "flee" when hit hard
237232 */
Show on old repository browser