Added code for Pickup for guests and staff.

This commit is contained in:
hexdec 2014-08-23 23:03:22 +02:00
parent d9e2b39b30
commit e71711e931
2 changed files with 30 additions and 0 deletions

View File

@ -341,6 +341,23 @@ void window_peep_overview_mouse_up(){
break;
case WIDX_PICKUP:
//696ba6
if (!peep_can_be_picked_up(peep)) {
return;
}
if (tool_set(w, widgetIndex, 7)) {
return;
}
w->var_48C = peep->sprite_identifier;
RCT2_CALLPROC_X(0x0069A512, 0, 0, 0, 0, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x006EC473, 0, 0, 0, 0, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x0069E9D3, 0x8000, 0, peep->y, peep->z, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x0069A409, 0, 0, 0, 0, (int)peep, 0, 0);
peep->state = 9;
peep->pad_2C = 0;
RCT2_CALLPROC_X(0x0069A42F, 0, 0, 0, 0, (int)peep, 0, 0);
break;
case WIDX_RENAME:
//696e4d

View File

@ -338,6 +338,19 @@ void window_staff_peep_mouse_up()
break;
case WIDX_PICKUP: // 0xA
// 0x6BE236
if (tool_set(w, widgetIndex, 7)) {
return;
}
w->var_48C = peep->sprite_identifier;
RCT2_CALLPROC_X(0x0069A512, 0, 0, 0, 0, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x006EC473, 0, 0, 0, 0, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x0069E9D3, 0x8000, 0, peep->y, peep->z, (int)peep, 0, 0);
RCT2_CALLPROC_X(0x0069A409, 0, 0, 0, 0, (int)peep, 0, 0);
peep->state = 9;
RCT2_CALLPROC_X(0x0069A42F, 0, 0, 0, 0, (int)peep, 0, 0);
break;
case WIDX_FIRE: // 0xE
window_staff_peep_fire(w);