[Scummvm-git-logs] scummvm master -> 31811c35f357888f1cb193a1261e921b6ad8ab26

mgerhardy noreply at scummvm.org
Thu Sep 29 06:49:26 UTC 2022


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:
31811c35f3 TWINE: fixed missing count when picking up items


Commit: 31811c35f357888f1cb193a1261e921b6ad8ab26
    https://github.com/scummvm/scummvm/commit/31811c35f357888f1cb193a1261e921b6ad8ab26
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2022-09-29T05:00:00+02:00

Commit Message:
TWINE: fixed missing count when picking up items

https://bugs.scummvm.org/ticket/13678

Changed paths:
    engines/twine/scene/extra.cpp


diff --git a/engines/twine/scene/extra.cpp b/engines/twine/scene/extra.cpp
index f23fbb85899..ae1cb70a8e2 100644
--- a/engines/twine/scene/extra.cpp
+++ b/engines/twine/scene/extra.cpp
@@ -837,9 +837,8 @@ void Extra::processExtras() { // GereExtras
 			if (_engine->_collision->extraCheckObjCol(extra, -1) == 0) {
 				_engine->_sound->playSample(Samples::ItemFound, 1, extra->pos);
 
-				const IVec3 &projPos = _engine->_renderer->_projPos;
-				if (extra->info1 > 1 && !_engine->_input->isActionActive(TwinEActionType::MoveBackward)) {
-					_engine->_renderer->projectPositionOnScreen(extra->pos - _engine->_grid->_camera);
+				if (extra->info1 > 1) {
+					const IVec3 &projPos = _engine->_renderer->projectPositionOnScreen(extra->pos - _engine->_grid->_camera);
 					const int16 fontColor = COLOR_158;
 					_engine->_redraw->addOverlay(OverlayType::koNumber, extra->info1, projPos.x, projPos.y, fontColor, OverlayPosType::koNormal, 2);
 				}




More information about the Scummvm-git-logs mailing list