Changeset 928
- Timestamp:
- 05/17/08 11:10:26 (6 months ago)
- Files:
-
- trunk/src/defines.h (modified) (1 diff)
- trunk/src/dungeon.c (modified) (3 diffs)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/loadsave.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/defines.h
r918 r928 1376 1376 1377 1377 #define race_flags_differ(A,B) (0 != memcmp((A), (B), sizeof(u32b)*RACE_FLAG_STRICT_UB)) 1378 #define race_flags_differ_spell(A,B) (0 != memcmp((A), (B), sizeof(u32b)*RACE_FLAG_SPELL_STRICT_UB)) 1378 1379 #define race_flags_assign(A,B) memmove((A), (B), sizeof(u32b)*RACE_FLAG_STRICT_UB) 1379 1380 #define race_flags_assign_spell(A, B) memmove((A), (B), sizeof(u32b)*RACE_FLAG_SPELL_STRICT_UB) trunk/src/dungeon.c
r918 r928 978 978 static int old_monster_race_idx = 0; 979 979 980 static u32b old_flags[RACE_FLAG_STRICT_UB] = {0L, 0L, 0L, 0L, 0L, 0L }; 980 static u32b old_flags[RACE_FLAG_STRICT_UB] = { 0L, 0L, 0L }; 981 static u32b old_spell_flags[RACE_FLAG_SPELL_STRICT_UB] = { 0L, 0L, 0L }; 981 982 982 983 static byte old_blows[MONSTER_BLOW_MAX]; … … 1000 1001 } 1001 1002 } 1002 1003 1003 1004 /* Check for change of any kind */ 1004 1005 if (changed || 1005 1006 (old_monster_race_idx != p_ptr->monster_race_idx) || 1006 1007 race_flags_differ(old_flags, l_ptr->flags) || 1008 race_flags_differ_spell(old_spell_flags, l_ptr->spell_flags) || 1007 1009 (old_cast_innate != l_ptr->cast_innate) || 1008 1010 (old_cast_spell != l_ptr->cast_spell)) … … 1013 1015 /* Memorize flags */ 1014 1016 race_flags_assign(old_flags, l_ptr->flags); 1017 race_flags_assign_spell(old_spell_flags, l_ptr->spell_flags); 1015 1018 1016 1019 /* Memorize blows */ trunk/src/externs.h
r918 r928 564 564 void store_init(void); 565 565 void store_shuffle(int which); 566 void store_maint(int which); 566 567 bool store_overflow(void); 567 568 void do_cmd_store(void); trunk/src/loadsave.c
r918 r928 1285 1285 1286 1286 if (o_ptr->note) 1287 smap_put_str(s, "note", (char*)quark_str(o_ptr->note));1287 smap_put_str(s, "note", quark_str(o_ptr->note)); 1288 1288 1289 1289 return s;
