[Scummvm-git-logs] scummvm master -> c7eca9d3abc067940e592ab35e94966b7d8fc886

neuromancer noreply at scummvm.org
Sun Nov 29 08:16:17 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
c7eca9d3ab HYPNO: BOYZ: Add low ammo warning when last ammo bar is left


Commit: c7eca9d3abc067940e592ab35e94966b7d8fc886
    https://github.com/scummvm/scummvm/commit/c7eca9d3abc067940e592ab35e94966b7d8fc886
Author: hiteshchandra (hiteshchandra2703 at gmail.com)
Date: 2026-11-29T09:16:13+01:00

Commit Message:
HYPNO: BOYZ: Add low ammo warning when last ammo bar is left

Changed paths:
    engines/hypno/boyz/arcade.cpp


diff --git a/engines/hypno/boyz/arcade.cpp b/engines/hypno/boyz/arcade.cpp
index a7e5df72e51..03ef5f52c76 100644
--- a/engines/hypno/boyz/arcade.cpp
+++ b/engines/hypno/boyz/arcade.cpp
@@ -272,7 +272,16 @@ void BoyzEngine::drawAmmo() {
 
 	Common::Rect ammoBarBox(320 - int(_ammo * w), 0, 320, _ammoBar[_currentActor].h / 2);
 	uint32 c = kHypnoColorGreen; // green
-	_compositeSurface->fillRect(ammoBarBox, c);
+	bool visible = true;
+
+	// Last bullet: red and blinking
+	if (_ammo == 1) {
+		c = kHypnoColorRed;
+		visible = (g_system->getMillis() / 150) % 2 == 0;
+	}
+
+	if (visible)
+		_compositeSurface->fillRect(ammoBarBox, c);
 
 	drawImage(_ammoBar[_currentActor], 320 - _ammoBar[_currentActor].w, 0, true);
 	for (int i = 1; i < _weaponMaxAmmo[_currentWeapon]; i++) {




More information about the Scummvm-git-logs mailing list