mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
TWINE: fixed missing count when picking up items
https://bugs.scummvm.org/ticket/13678
This commit is contained in:
parent
796f54ff89
commit
31811c35f3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user