Changeset 489
- Timestamp:
- 08/11/07 00:30:46 (1 year ago)
- Files:
-
- trunk/src/init1.c (modified) (10 diffs)
- trunk/src/monster2.c (modified) (2 diffs)
- trunk/src/randart.c (modified) (1 diff)
- trunk/src/randname.c (modified) (1 diff)
- trunk/src/save.c (modified) (1 diff)
- trunk/src/store.c (modified) (1 diff)
- trunk/src/types.h (modified) (2 diffs)
- trunk/src/ui.c (modified) (1 diff)
- trunk/src/util.c (modified) (1 diff)
- trunk/src/win/readdib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/init1.c
r470 r489 927 927 928 928 /* Store the name */ 929 if ( !(v_ptr->name = add_name(head, s)))929 if ((v_ptr->name = add_name(head, s)) == 0) 930 930 return (PARSE_ERROR_OUT_OF_MEMORY); 931 931 } … … 1026 1026 1027 1027 /* Store the name */ 1028 if ( !(f_ptr->name = add_name(head, s)))1028 if ((f_ptr->name = add_name(head, s)) == 0) 1029 1029 return (PARSE_ERROR_OUT_OF_MEMORY); 1030 1030 … … 1209 1209 1210 1210 /* Store the name */ 1211 if ( !(k_ptr->name = add_name(head, s)))1211 if ((k_ptr->name = add_name(head, s)) == 0) 1212 1212 return (PARSE_ERROR_OUT_OF_MEMORY); 1213 1213 … … 1540 1540 1541 1541 /* Store the name */ 1542 if ( !(a_ptr->name = add_name(head, s)))1542 if ((a_ptr->name = add_name(head, s)) == 0) 1543 1543 return (PARSE_ERROR_OUT_OF_MEMORY); 1544 1544 … … 1773 1773 1774 1774 /* Store the name */ 1775 if ( !(e_ptr->name = add_name(head, s)))1775 if ((e_ptr->name = add_name(head, s)) == 0) 1776 1776 return (PARSE_ERROR_OUT_OF_MEMORY); 1777 1777 … … 2001 2001 2002 2002 /* Store the name */ 2003 if ( !(r_ptr->name = add_name(head, s)))2003 if ((r_ptr->name = add_name(head, s)) == 0) 2004 2004 return (PARSE_ERROR_OUT_OF_MEMORY); 2005 2005 … … 2315 2315 2316 2316 /* Store the name */ 2317 if ( !(pr_ptr->name = add_name(head, s)))2317 if ((pr_ptr->name = add_name(head, s)) == 0) 2318 2318 return (PARSE_ERROR_OUT_OF_MEMORY); 2319 2319 } … … 2564 2564 2565 2565 /* Store the name */ 2566 if ( !(pc_ptr->name = add_name(head, s)))2566 if ((pc_ptr->name = add_name(head, s)) == 0) 2567 2567 return (PARSE_ERROR_OUT_OF_MEMORY); 2568 2568 … … 2948 2948 2949 2949 /* Store the name */ 2950 if ( !(ot_ptr->owner_name = add_name(head, t)))2950 if ((ot_ptr->owner_name = add_name(head, t)) == 0) 2951 2951 return (PARSE_ERROR_OUT_OF_MEMORY); 2952 2952 } … … 3209 3209 3210 3210 /* Store the name */ 3211 if ( !(s_ptr->name = add_name(head, s)))3211 if ((s_ptr->name = add_name(head, s)) == 0) 3212 3212 return (PARSE_ERROR_OUT_OF_MEMORY); 3213 3213 } trunk/src/monster2.c
r450 r489 1978 1978 int px = p_ptr->px; 1979 1979 1980 int y , x;1980 int y = 0, x = 0; 1981 1981 int attempts_left = 10000; 1982 1982 … … 2166 2166 bool summon_specific(int y1, int x1, int lev, int type) 2167 2167 { 2168 int i, x , y, r_idx;2168 int i, x = 0, y = 0, r_idx; 2169 2169 2170 2170 trunk/src/randart.c
r410 r489 1156 1156 s32b power; 1157 1157 int tries; 1158 s32b ap ;1158 s32b ap = 0; 1159 1159 bool curse_me = FALSE; 1160 1160 bool aggravate_me = FALSE; trunk/src/randname.c
r175 r489 282 282 size_t randname_make(randname_type name_type, size_t min, size_t max, char *word_buf, size_t buflen) 283 283 { 284 size_t lnum ;284 size_t lnum = 0; 285 285 bool found_word = FALSE; 286 286 trunk/src/save.c
r479 r489 1058 1058 if (save_player_aux(new_savefile)) 1059 1059 { 1060 int error;1061 1062 1060 safe_setuid_grab(); 1063 1061 trunk/src/store.c
r471 r489 2652 2652 2653 2653 menu_type menu; 2654 event_type evt ;2654 event_type evt = EVENT_EMPTY; 2655 2655 int cursor = 0; 2656 2656 trunk/src/types.h
r484 r489 37 37 */ 38 38 39 #ifndef INCLUDED_TYPES_H 40 #define INCLUDED_TYPES_H 39 41 40 42 … … 1138 1140 } grid_data; 1139 1141 1142 1143 #endif /* !INCLUDED_TYPES_H */ trunk/src/ui.c
r471 r489 116 116 event_type run_event_loop(event_target * target, bool forever, const event_type *start) 117 117 { 118 event_type ke ;118 event_type ke = EVENT_EMPTY; 119 119 bool handled = TRUE; 120 120 trunk/src/util.c
r479 r489 306 306 { 307 307 size_t j; 308 while ((tmp = strchr(macro_modifier_chr, *str)) )308 while ((tmp = strchr(macro_modifier_chr, *str)) != 0) 309 309 { 310 310 j = tmp - macro_modifier_chr; trunk/src/win/readdib.c
r253 r489 228 228 } 229 229 230 if ( !(nNumColors = (WORD)lpbi->biClrUsed))230 if ((nNumColors = (WORD)lpbi->biClrUsed) == 0) 231 231 { 232 232 /* no color table for 24-bit, default size otherwise */
