From a99cda80fd7d3a3152dccdeaa2e7f2f2d892bde3 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Sat, 24 Jul 2021 16:32:38 +0200 Subject: [PATCH] [Maintenance] Point out that player_invincible_via_bomb is exclusive to TH02 Will make it easier to comprehend that the bullet update function is actually correct with regards to only looking at a single variable. (Yes, I know, hard to believe!) Part of P0149, funded by Blue Bolt, Ember2528, and -Tom-. --- th02/main/player/player.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/th02/main/player/player.h b/th02/main/player/player.h index 41fde9e2..9113bcb3 100644 --- a/th02/main/player/player.h +++ b/th02/main/player/player.h @@ -2,9 +2,11 @@ #define PLAYER_H 48 // Grants invincibility when >0. Decrements by 1 each frame in that case. -// Works independently from [player_invincible_via_bomb]. +// In TH02, this works independently from [player_invincible_via_bomb]. extern unsigned char player_invincibility_time; -// Grants invincibility as long as it's true. Works independently from -// [player_invincibility_time]. -extern bool player_invincible_via_bomb; +#if (GAME == 2) + // Grants invincibility as long as it's true. Works independently from + // [player_invincibility_time]. + extern bool player_invincible_via_bomb; +#endif