diff --git a/engines/ultima/nuvie/views/container_widget.cpp b/engines/ultima/nuvie/views/container_widget.cpp index 74eaf73974c..15e0518729a 100644 --- a/engines/ultima/nuvie/views/container_widget.cpp +++ b/engines/ultima/nuvie/views/container_widget.cpp @@ -257,10 +257,10 @@ Obj *ContainerWidget::get_obj_at_location(int x, int y) { } // change container, ready/unready object, activate arrows -GUI_status ContainerWidget::MouseUp(int x, int y, Shared::MouseButton button) { +GUI_status ContainerWidget::MouseUp(int /*x*/, int /*y*/, Shared::MouseButton button) { if (button == USE_BUTTON) { - x -= area.left; - y -= area.top; + //x -= area.left; + //y -= area.top; if (selected_obj) { // only act now if objects can't be used with DoubleClick @@ -421,12 +421,12 @@ bool ContainerWidget::drag_accept_drop(int x, int y, int message, void *data) { return false; } -void ContainerWidget::drag_perform_drop(int x, int y, int message, void *data) { +void ContainerWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) { DEBUG(0, LEVEL_DEBUGGING, "ContainerWidget::drag_perform_drop()\n"); Obj *obj; - x -= area.left; - y -= area.top; + //x -= area.left; + //y -= area.top; if (message == GUI_DRAG_OBJ) { DEBUG(0, LEVEL_DEBUGGING, "Drop into inventory.\n"); diff --git a/engines/ultima/nuvie/views/doll_widget.cpp b/engines/ultima/nuvie/views/doll_widget.cpp index 2ffafc7dd4b..bff68a5f00d 100644 --- a/engines/ultima/nuvie/views/doll_widget.cpp +++ b/engines/ultima/nuvie/views/doll_widget.cpp @@ -476,12 +476,12 @@ bool DollWidget::drag_accept_drop(int x, int y, int message, void *data) { return false; } -void DollWidget::drag_perform_drop(int x, int y, int message, void *data) { +void DollWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) { DEBUG(0, LEVEL_DEBUGGING, "DollWidget::drag_perform_drop()\n"); Obj *obj; - x -= area.left; - y -= area.top; + //x -= area.left; + //y -= area.top; if (message == GUI_DRAG_OBJ) { DEBUG(0, LEVEL_DEBUGGING, "Ready item.\n"); diff --git a/engines/ultima/nuvie/views/inventory_widget.cpp b/engines/ultima/nuvie/views/inventory_widget.cpp index a132bacdc06..39916b1ca9a 100644 --- a/engines/ultima/nuvie/views/inventory_widget.cpp +++ b/engines/ultima/nuvie/views/inventory_widget.cpp @@ -562,12 +562,12 @@ bool InventoryWidget::drag_accept_drop(int x, int y, int message, void *data) { return false; } -void InventoryWidget::drag_perform_drop(int x, int y, int message, void *data) { +void InventoryWidget::drag_perform_drop(int /*x*/, int /*y*/, int message, void *data) { DEBUG(0, LEVEL_DEBUGGING, "InventoryWidget::drag_perform_drop()\n"); Obj *obj; - x -= area.left; - y -= area.top; + //x -= area.left; + //y -= area.top; if (message == GUI_DRAG_OBJ) { DEBUG(0, LEVEL_DEBUGGING, "Drop into inventory.\n"); diff --git a/engines/ultima/ultima4/map/maploader.cpp b/engines/ultima/ultima4/map/maploader.cpp index 3883cc978b3..9de39ee56fb 100644 --- a/engines/ultima/ultima4/map/maploader.cpp +++ b/engines/ultima/ultima4/map/maploader.cpp @@ -117,6 +117,8 @@ bool MapLoader::loadData(Map *map, Common::SeekableReadStream &f) { } } + debug(10, "MapLoader::loadData translation took %d ms", total); + return true; }