Maelstrom: Fixed ACHIEVEMENT_USING_YOUR_NOGGIN (thanks @tclementdev!)

From 0d7a85016337fde33769fd9f78b3dd6d306bca28 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 30 May 2026 17:44:29 -0700
Subject: [PATCH] Fixed ACHIEVEMENT_USING_YOUR_NOGGIN (thanks @tclementdev!)

Fixes https://github.com/libsdl-org/Maelstrom/issues/78
---
 game/objects.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/objects.h b/game/objects.h
index 8e2c5962..302e51be 100644
--- a/game/objects.h
+++ b/game/objects.h
@@ -448,7 +448,7 @@ class Rock : public Object {
 	virtual int BeenRunOver(Object *ship) {
 		int was_exploding = ship->IsExploding();
 		int result = Object::BeenRunOver(ship);
-		if ( ship->IsPlayer() && !was_exploding && ship->IsExploding() && gNumRocks == 1 ) {
+		if ( ship->IsPlayer() && !was_exploding && ship->IsExploding() && gNumRocks == 0 ) {
 			UnlockSinglePlayerAchievement("ACHIEVEMENT_USING_YOUR_NOGGIN");
 		}
 		return result;