Add mapper_destroy_highlight_obj
This commit is contained in:
parent
ee19238667
commit
d46ee07583
|
@ -48,6 +48,7 @@ static void redraw_toolname();
|
||||||
static void clear_toolname();
|
static void clear_toolname();
|
||||||
static void update_toolname(int* pid, int type, int id);
|
static void update_toolname(int* pid, int type, int id);
|
||||||
static void update_high_obj_name(Object* obj);
|
static void update_high_obj_name(Object* obj);
|
||||||
|
static void mapper_destroy_highlight_obj(Object** a1, Object** a2);
|
||||||
static int mapper_mark_exit_grid();
|
static int mapper_mark_exit_grid();
|
||||||
static void mapper_mark_all_exit_grids();
|
static void mapper_mark_all_exit_grids();
|
||||||
|
|
||||||
|
@ -1501,6 +1502,28 @@ void update_high_obj_name(Object* obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 0x48B680
|
||||||
|
void mapper_destroy_highlight_obj(Object** a1, Object** a2)
|
||||||
|
{
|
||||||
|
Rect rect;
|
||||||
|
int elevation;
|
||||||
|
|
||||||
|
if (a2 != NULL && *a2 != NULL) {
|
||||||
|
elevation = (*a2)->elevation;
|
||||||
|
reg_anim_clear(*a2);
|
||||||
|
objectDestroy(*a2, &rect);
|
||||||
|
tileWindowRefreshRect(&rect, elevation);
|
||||||
|
*a2 = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (a1 != NULL && *a1 != NULL) {
|
||||||
|
elevation = (*a1)->elevation;
|
||||||
|
objectDestroy(*a1, &rect);
|
||||||
|
tileWindowRefreshRect(&rect, elevation);
|
||||||
|
*a1 = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 0x48C604
|
// 0x48C604
|
||||||
int mapper_inven_unwield(Object* obj, int right_hand)
|
int mapper_inven_unwield(Object* obj, int right_hand)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue