From 9c629b6561ef6a29f48fb2ad4ac75f667dde29fe Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sun, 15 Nov 2026 15:07:15 +0100 Subject: [PATCH] All units have the same shooting distance to make it fair --- src/netdeck/NetDeck.ino | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/netdeck/NetDeck.ino b/src/netdeck/NetDeck.ino index 5c85097..9eeddf8 100644 --- a/src/netdeck/NetDeck.ino +++ b/src/netdeck/NetDeck.ino @@ -617,7 +617,7 @@ struct UnitStat { uint8_t maxHp; }; static const UnitStat STATS[4] = { - { 16 * 16, 5, 65, 1, 4, 6 }, // marine + { 14 * 14, 5, 65, 1, 4, 6 }, // marine { 14 * 14, 6, 55, 1, 5, 4 }, // droid { 14 * 14, 7, 50, 2, 7, 10 }, // heavy { 14 * 14, 4, 60, 1, 0, 8 }, // turret @@ -1022,9 +1022,13 @@ static void updateFog() if (!units[i].alive || units[i].team != TEAM_MARINE) continue; revealLos(units[i].tx, units[i].ty, FOG_SIGHT_R); } - for (int i = 0; i < NODE_COUNT; i++) - if (nodeOnline[i]) - revealLos(NODES[i].tx, NODES[i].ty, NODES[i].sight); + for (int i = 0; i < NODE_COUNT; i++) { + if (nodeOnline[i]) { + // only cameras have large LOS; other nodes uncover just their own position + int r = (strstr(NODES[i].label, "CAM") != nullptr) ? NODES[i].sight : 1; + revealLos(NODES[i].tx, NODES[i].ty, r); + } + } } // ---------------------------------------------------------------------------