Changeset 928

Show
Ignore:
Timestamp:
05/17/08 11:10:26 (5 months ago)
Author:
takkaria
Message:
  • Fix issue with monster term not being updated correctly in case of learning new spell info.
  • Fix store_maint() not being exported
  • Stop using an unnecessary (char *) cast in loadsave.c
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/defines.h

    r918 r928  
    13761376 
    13771377#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)) 
    13781379#define race_flags_assign(A,B) memmove((A), (B), sizeof(u32b)*RACE_FLAG_STRICT_UB) 
    13791380#define race_flags_assign_spell(A, B) memmove((A), (B), sizeof(u32b)*RACE_FLAG_SPELL_STRICT_UB) 
  • trunk/src/dungeon.c

    r918 r928  
    978978        static int old_monster_race_idx = 0; 
    979979 
    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 }; 
    981982 
    982983        static byte old_blows[MONSTER_BLOW_MAX]; 
     
    10001001                        } 
    10011002                } 
    1002                  
     1003 
    10031004                /* Check for change of any kind */ 
    10041005                if (changed || 
    10051006                    (old_monster_race_idx != p_ptr->monster_race_idx) || 
    10061007                    race_flags_differ(old_flags, l_ptr->flags) || 
     1008                    race_flags_differ_spell(old_spell_flags, l_ptr->spell_flags) || 
    10071009                    (old_cast_innate != l_ptr->cast_innate) || 
    10081010                    (old_cast_spell != l_ptr->cast_spell)) 
     
    10131015                        /* Memorize flags */ 
    10141016                        race_flags_assign(old_flags, l_ptr->flags); 
     1017                        race_flags_assign_spell(old_spell_flags, l_ptr->spell_flags); 
    10151018 
    10161019                        /* Memorize blows */ 
  • trunk/src/externs.h

    r918 r928  
    564564void store_init(void); 
    565565void store_shuffle(int which); 
     566void store_maint(int which); 
    566567bool store_overflow(void); 
    567568void do_cmd_store(void); 
  • trunk/src/loadsave.c

    r918 r928  
    12851285 
    12861286        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)); 
    12881288 
    12891289        return s;