Always follow the current adventure in adventure mode.

develop
Japa 2017-10-22 13:37:23 +05:30
parent b480cd6b38
commit e51ae78a46
1 changed files with 5 additions and 1 deletions

@ -1656,7 +1656,11 @@ static command_result GetViewInfo(color_ostream &stream, const EmptyMessage *in,
out->set_cursor_pos_x(cx); out->set_cursor_pos_x(cx);
out->set_cursor_pos_y(cy); out->set_cursor_pos_y(cy);
out->set_cursor_pos_z(cz); out->set_cursor_pos_z(cz);
out->set_follow_unit_id(ui->follow_unit);
if(gamemode && *gamemode == GameMode::ADVENTURE)
out->set_follow_unit_id(world->units.active[0]->id);
else
out->set_follow_unit_id(ui->follow_unit);
out->set_follow_item_id(ui->follow_item); out->set_follow_item_id(ui->follow_item);
return CR_OK; return CR_OK;
} }