[Scummvm-git-logs] scummvm master -> 562e66df0fa84650b148cb31a4969d70533428c8
scemino
noreply at scummvm.org
Sun Mar 17 20:35:09 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
562e66df0f TWP: Fix regression in inventory
Commit: 562e66df0fa84650b148cb31a4969d70533428c8
https://github.com/scummvm/scummvm/commit/562e66df0fa84650b148cb31a4969d70533428c8
Author: scemino (scemino74 at gmail.com)
Date: 2024-03-17T21:32:39+01:00
Commit Message:
TWP: Fix regression in inventory
Changed paths:
engines/twp/scenegraph.cpp
diff --git a/engines/twp/scenegraph.cpp b/engines/twp/scenegraph.cpp
index c59309b90af..bec6399d24e 100644
--- a/engines/twp/scenegraph.cpp
+++ b/engines/twp/scenegraph.cpp
@@ -572,7 +572,7 @@ static bool hasDownArrow(Common::SharedPtr<Object> actor) {
Inventory::Inventory() : Node("Inventory") {
for (int i = 0; i < NUMOBJECTS; i++) {
float x = SCREEN_WIDTH / 2.f + ARROWWIDTH + MARGIN + ((i % NUMOBJECTSBYROW) * (BACKWIDTH + BACKOFFSET));
- float y = MARGINBOTTOM + BACKHEIGHT + BACKOFFSET - (((float)(i) / NUMOBJECTSBYROW) * (BACKHEIGHT + BACKOFFSET));
+ float y = MARGINBOTTOM + BACKHEIGHT + BACKOFFSET - ((float)(i / NUMOBJECTSBYROW) * (BACKHEIGHT + BACKOFFSET));
_itemRects[i] = Common::Rect(x, y, x + BACKWIDTH, y + BACKHEIGHT);
}
_arrowUpRect = Common::Rect(SCREEN_WIDTH / 2.f, ARROWHEIGHT + MARGINBOTTOM + BACKOFFSET, SCREEN_WIDTH / 2.f + ARROWWIDTH, ARROWHEIGHT + MARGINBOTTOM + BACKOFFSET + ARROWHEIGHT);
More information about the Scummvm-git-logs
mailing list