mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-03 16:31:58 -04:00
m_tag_ovl 75% matched
This commit is contained in:
@@ -1863,14 +1863,14 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
u16 angle;
|
||||
|
||||
if (mCoBG_CheckUtFlat(&player_pos) == FALSE) {
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
|
||||
if (aMR_CLIP != NULL && my_room != NULL && aMR_CheckReserveFlag(my_room, 0) == FALSE) {
|
||||
*rotation = 0;
|
||||
*square_offset = 0;
|
||||
*layer = 0;
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
|
||||
aMR_Wpos2PlaceNumber(&cur_ut_x, &cur_ut_z, player_pos, 0);
|
||||
@@ -1907,7 +1907,7 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
|
||||
for (i = 0; i < 5; i++) {
|
||||
if (aMR_WeightPossible((ACTOR*)my_room, profile->shape) == FALSE) {
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
}
|
||||
|
||||
target_ut_x = cur_ut_x;
|
||||
@@ -1975,7 +1975,7 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
for (i = 0; i < 5; i++) {
|
||||
angle_idx = (int)angle_idx;
|
||||
if (aMR_WeightPossible((ACTOR*)my_room, profile->shape) == FALSE) {
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
}
|
||||
|
||||
target_ut_x = cur_ut_x;
|
||||
@@ -2084,16 +2084,16 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
}
|
||||
}
|
||||
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
} else {
|
||||
*rotation = 0;
|
||||
*square_offset = 0;
|
||||
*layer = 0;
|
||||
return -3;
|
||||
return aMR_JUDGE_OTHER_ROOM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ static void aSL_SetShopRenewalChirashi_Notice(int shop_level, lbRTC_time_c* time
|
||||
mHandbill_Load_HandbillFromRom(content->header, &header_back_start, content->footer, content->body,
|
||||
renewal_chirashi_bunmen[shop_level & 3]);
|
||||
content->header_back_start = header_back_start;
|
||||
content->font = mMl_FONT_0;
|
||||
content->font = mMl_FONT_RECV;
|
||||
content->paper_type = (u8)ITM_PAPER55;
|
||||
content->mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
mPr_CopyPersonalID(&mail.header.recipient.personalID, &Save_Get(private_data[player_no]).player_ID);
|
||||
|
||||
+1
-1
@@ -454,7 +454,7 @@ static void mFR_GetFishPresentMail(mFR_record_c* record, Mail_c* mail) {
|
||||
);
|
||||
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_FISHING_CONTENST;
|
||||
mail->present = present;
|
||||
mail->content.paper_type = 15; // deep sea paper
|
||||
|
||||
+13
-13
@@ -86,7 +86,7 @@ static void mHD_hand_pos_get(Submenu* submenu, f32* pos, int table_type, int tab
|
||||
pos[1] += 23.0f;
|
||||
}
|
||||
} else if ((table_type == mTG_TABLE_GBA || table_type == mTG_TABLE_GBA_NW || table_type == mTG_TABLE_CARD ||
|
||||
table_type == mTG_TABLE_GBA_NW2 || table_type == mTG_TABLE_CPORIGINAL ||
|
||||
table_type == mTG_TABLE_CARD_NW || table_type == mTG_TABLE_CPORIGINAL ||
|
||||
table_type == mTG_TABLE_CPORIGINAL_NW) &&
|
||||
item != EMPTY_NO) {
|
||||
pos[0] += -2.0f;
|
||||
@@ -178,7 +178,7 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
table = tag->table;
|
||||
}
|
||||
|
||||
if (item != NULL && *item != EMPTY_NO && table != mTG_TABLE_GBA_NW2 && table != mTG_TABLE_GBA_NW) {
|
||||
if (item != NULL && *item != EMPTY_NO && table != mTG_TABLE_CARD_NW && table != mTG_TABLE_GBA_NW) {
|
||||
now_item = *item;
|
||||
mTG_mark_mainX(submenu, menu_info, table, table_idx, 2, 0);
|
||||
|
||||
@@ -222,11 +222,11 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
sAdo_SysTrgStart(NA_SE_41C);
|
||||
|
||||
if (mail != NULL) {
|
||||
if (mail->content.font == mMl_FONT_0) {
|
||||
mail->content.font = mMl_FONT_3;
|
||||
if (mail->content.font == mMl_FONT_RECV) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT;
|
||||
hand_ovl->info.item_cond = mPr_ITEM_COND_PRESENT;
|
||||
} else if (mail->content.font == mMl_FONT_2) {
|
||||
mail->content.font = mMl_FONT_4;
|
||||
} else if (mail->content.font == mMl_FONT_RECV_READ) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT_READ;
|
||||
hand_ovl->info.item_cond = mPr_ITEM_COND_PRESENT;
|
||||
}
|
||||
}
|
||||
@@ -280,16 +280,16 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
|
||||
mTG_mark_mainX(submenu, menu_info, table, table_idx, 2, 0);
|
||||
|
||||
if (table == mTG_TABLE_GBA_NW || table == mTG_TABLE_GBA_NW2) {
|
||||
if (table == mTG_TABLE_GBA_NW || table == mTG_TABLE_CARD_NW) {
|
||||
mGB_copy_image(submenu, hand_ovl->info.item, *item);
|
||||
} else if (item != NULL) {
|
||||
*item = hand_ovl->info.item;
|
||||
|
||||
if (mail != NULL) {
|
||||
if (mail->content.font == mMl_FONT_0) {
|
||||
mail->content.font = mMl_FONT_3;
|
||||
} else if (mail->content.font == mMl_FONT_2) {
|
||||
mail->content.font = mMl_FONT_4;
|
||||
if (mail->content.font == mMl_FONT_RECV) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT;
|
||||
} else if (mail->content.font == mMl_FONT_RECV_READ) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT_READ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -589,7 +589,7 @@ static void mHD_open_end_proc_item_type17(Submenu* submenu, int idx, int table)
|
||||
}
|
||||
break;
|
||||
case mTG_TABLE_GBA_NW:
|
||||
case mTG_TABLE_GBA_NW2:
|
||||
case mTG_TABLE_CARD_NW:
|
||||
tmp_item = RSV_NW_ORIGINAL0 + idx;
|
||||
break;
|
||||
case mTG_TABLE_CPORIGINAL:
|
||||
@@ -664,7 +664,7 @@ static void mHD_open_end_proc_item(Submenu* submenu) {
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA_NW */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_CARD */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA_NW2 */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_CARD_NW */
|
||||
};
|
||||
|
||||
mSM_MenuInfo_c* menu_info;
|
||||
|
||||
+2
-2
@@ -199,7 +199,7 @@ extern int mMl_check_send_mail(Mail_c* mail) {
|
||||
extern int mMl_check_set_present_myself(Mail_c* mail) {
|
||||
u8 font = mail->content.font;
|
||||
|
||||
if (font == mMl_FONT_SEND || font == mMl_FONT_3 || font == mMl_FONT_4) {
|
||||
if (font == mMl_FONT_SEND || font == mMl_FONT_RECV_PLAYER_PRESENT || font == mMl_FONT_RECV_PLAYER_PRESENT_READ) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ static void mMl_get_mail_to_player_com(Mail_c* mail, PersonalID_c* recipient_pid
|
||||
|
||||
mMl_clear_mail(mail);
|
||||
(*get_proc[proc_type])(mail, mail_no);
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mail_type;
|
||||
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, recipient_pid);
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ static int mMkRm_NoMarkLetter(int arrange_idx, int handbill_no) {
|
||||
|
||||
mMl_clear_mail(&mail);
|
||||
mHandbill_Load_HandbillFromRom(mail.content.header, &header_back_start, mail.content.footer, mail.content.body, handbill_no);
|
||||
mail.content.font = mMl_FONT_0;
|
||||
mail.content.font = mMl_FONT_RECV;
|
||||
mail.content.header_back_start = header_back_start;
|
||||
mail.content.mail_type = mMl_TYPE_HRA;
|
||||
mail.content.paper_type = 51; /* wing paper */
|
||||
|
||||
@@ -2932,7 +2932,7 @@ static void mMkRm_SendMarkLetter(mHm_hs_c* house, int points, int room_size, u8*
|
||||
mMl_clear_mail(&letter);
|
||||
mHandbill_Load_HandbillFromRom(letter.content.header, &header_back_start, letter.content.footer,
|
||||
letter.content.body, handbill_no);
|
||||
letter.content.font = mMl_FONT_0;
|
||||
letter.content.font = mMl_FONT_RECV;
|
||||
letter.content.header_back_start = header_back_start;
|
||||
letter.content.mail_type = mMl_TYPE_HRA;
|
||||
letter.content.paper_type = 51; /* wing paper */
|
||||
|
||||
+3
-3
@@ -1571,7 +1571,7 @@ static void mNpc_GetRemailData(Mail_c* mail, PersonalID_c* pid, AnmPersonalID_c*
|
||||
int paper_no;
|
||||
|
||||
(*get_remail[cond])(mail, pid, anm_id, remail, foreign);
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_MAIL;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
@@ -1680,7 +1680,7 @@ static void mNpc_LoadMailDataCommon2(Mail_c* mail, PersonalID_c* pid, AnmPersona
|
||||
mem_copy(mail->content.header, super, MAIL_HEADER_LEN);
|
||||
mem_copy(mail->content.footer, ps, MAIL_FOOTER_LEN);
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_MAIL;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
@@ -1920,7 +1920,7 @@ static void mNpc_GetXmasCardData(Mail_c* mail, PersonalID_c* pid) {
|
||||
mHandbill_Load_HandbillFromRom(mail->content.header, &header_back_start, mail->content.footer, mail->content.body,
|
||||
0xD7);
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_XMAS;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ static void mPO_delivery_mail_with_item(Mail_c* mail, int mail_no, mActor_name_t
|
||||
mHandbill_Load_HandbillFromRom(mail->content.header, &header_back_start, mail->content.footer, mail->content.body,
|
||||
mail_no);
|
||||
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.mail_type = 7;
|
||||
mail->content.paper_type = ITM_PAPER55;
|
||||
|
||||
+1
-1
@@ -603,7 +603,7 @@ static void mQst_GetRemailData(Mail_c* letter, PersonalID_c* recipient_id, AnmPe
|
||||
mem_copy(letter->content.header, header, MAIL_HEADER_LEN);
|
||||
mem_copy(letter->content.footer, footer, MAIL_FOOTER_LEN);
|
||||
letter->content.header_back_start = header_back_pos;
|
||||
letter->content.font = mMl_FONT_0;
|
||||
letter->content.font = mMl_FONT_RECV;
|
||||
letter->content.mail_type = 0;
|
||||
|
||||
mPr_CopyPersonalID(&letter->header.recipient.personalID, recipient_id);
|
||||
|
||||
+2
-2
@@ -1094,7 +1094,7 @@ extern void mSP_ShopItsumoChirashi(int house_no, int shop_level, mActor_name_t i
|
||||
mMl_clear_mail(&leaflet);
|
||||
mHandbill_Load_HandbillFromRom(leaflet.content.header, &header_back_start, leaflet.content.footer,
|
||||
leaflet.content.body, rare_chirashi_bunmen[shop_level][type & 1]);
|
||||
leaflet.content.font = mMl_FONT_0;
|
||||
leaflet.content.font = mMl_FONT_RECV;
|
||||
leaflet.content.header_back_start = header_back_start;
|
||||
leaflet.content.mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
leaflet.content.paper_type = ITM_PAPER55; // simple paper
|
||||
@@ -1226,7 +1226,7 @@ extern void mSP_SetRenewalChiraswhi_AppoDay() {
|
||||
mMl_clear_mail(&leaflet);
|
||||
mHandbill_Load_HandbillFromRom(content->header, &header_back_start, content->footer, content->body,
|
||||
chirashi_idx_appoday[shop_level]);
|
||||
leaflet.content.font = mMl_FONT_0;
|
||||
leaflet.content.font = mMl_FONT_RECV;
|
||||
leaflet.content.header_back_start = header_back_start;
|
||||
leaflet.content.mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
leaflet.content.paper_type = ITM_PAPER55; // simple paper
|
||||
|
||||
+1
-1
@@ -1527,7 +1527,7 @@ static void mSM_draw_mail(GRAPH* graph, f32 pos_x, f32 pos_y, f32 scale, Mail_c*
|
||||
|
||||
if (mMl_check_send_mail(mail)) {
|
||||
type = mSM_MAIL_SEND;
|
||||
} else if (mail->content.font == mMl_FONT_4 || mail->content.font == mMl_FONT_2) {
|
||||
} else if (mail->content.font == mMl_FONT_RECV_PLAYER_PRESENT_READ || mail->content.font == mMl_FONT_RECV_READ) {
|
||||
type = mSM_MAIL_NORMAL2;
|
||||
} else {
|
||||
type = mSM_MAIL_NORMAL;
|
||||
|
||||
+2091
-47
File diff suppressed because it is too large
Load Diff
@@ -172,7 +172,7 @@ static int sChk_font_sub(u8* font_p) {
|
||||
int res = FALSE;
|
||||
|
||||
/* This check seems wrong lol */
|
||||
if (font != 0xFF && (font >= 0xFF || font >= mMl_FONT_NUM || font < mMl_FONT_0)) {
|
||||
if (font != 0xFF && (font >= 0xFF || font >= mMl_FONT_NUM || font < mMl_FONT_RECV)) {
|
||||
mFRm_ERRORLINE(612);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user