*/
static bool get_player_seikaku(void)
{
- CHARACTER_IDX k;
+ int k;
int n, os, cs;
char c;
char sym[MAX_SEIKAKU];
}
/* Set seikaku */
- p_ptr->pseikaku = k;
+ p_ptr->pseikaku = (CHARACTER_IDX)k;
ap_ptr = &seikaku_info[p_ptr->pseikaku];
#ifdef JP
strcpy(tmp, ap_ptr->title);
#endif
strcat(tmp,p_ptr->name);
- /* Display */
c_put_str(TERM_L_BLUE, tmp, 1, 34);
return TRUE;
byte tmp8u;
wr_string(p_ptr->name);
-
wr_string(p_ptr->died_from);
-
wr_string(p_ptr->last_message ? p_ptr->last_message : "");
save_quick_start();
for (i = 0; i < 108; i++) wr_s32b(p_ptr->magic_num1[i]);
for (i = 0; i < 108; i++) wr_byte(p_ptr->magic_num2[i]);
- wr_byte(p_ptr->start_race);
+ wr_byte((byte_hack)p_ptr->start_race);
wr_s32b(p_ptr->old_race1);
wr_s32b(p_ptr->old_race2);
wr_s16b(p_ptr->old_realm);
POSITION oldpy; /* Previous player location -KMW- */
POSITION oldpx; /* Previous player location -KMW- */
- CHARACTER_IDX psex; /* Sex index */
- CHARACTER_IDX prace; /* Race index */
- CHARACTER_IDX pclass; /* Class index */
- CHARACTER_IDX pseikaku; /* Seikaku index */
- REALM_IDX realm1; /* First magic realm */
- REALM_IDX realm2; /* Second magic realm */
- CHARACTER_IDX oops; /* Unused */
-
- DICE_SID hitdie; /* Hit dice (sides) */
- u16b expfact; /* Experience factor
- * Note: was byte, causing overflow for Amberite
- * characters (such as Amberite Paladins)
- */
+ byte psex; /* Sex index */
+ RACE_IDX prace; /* Race index */
+ CLASS_IDX pclass; /* Class index */
+ CHARACTER_IDX pseikaku; /* Seikaku index */
+ REALM_IDX realm1; /* First magic realm */
+ REALM_IDX realm2; /* Second magic realm */
+ CHARACTER_IDX oops; /* Unused */
+
+ DICE_SID hitdie; /* Hit dice (sides) */
+ u16b expfact; /* Experience factor
+ * Note: was byte, causing overflow for Amberite
+ * characters (such as Amberite Paladins)
+ */
s16b age; /* Characters age */
s16b ht; /* Height */
byte knowledge; /* Knowledge about yourself */
BIT_FLAGS visit; /* Visited towns */
- byte start_race; /* Race at birth */
+ RACE_IDX start_race; /* Race at birth */
BIT_FLAGS old_race1; /* Record of race changes */
BIT_FLAGS old_race2; /* Record of race changes */
s16b old_realm; /* Record of realm changes */