Assigning to GameClock.paused is silently discarded #118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
test_pawn_task_arrival.gdopens withGameClock.pausedis derived fromplayer_pausedandmenu_pausedand has only a getter. Assigning to it is not a parse error and not a runtime error — it is silently discarded. Verified with a throwaway test: setplayer_paused = true, assignpaused = false, andpausedis still true.Harmless today, because those tests drive
PawnView._process()directly and never ask the clock for anything. But it reads as "this test unpauses the clock first", and the next person to write a test that genuinely depends on the clock running will copy it and spend a while wondering why.AC:
GameClock.player_paused = false, orreset()) or goes, with a note if the file has no reason to touch the clock at allPawn.destinationand any other derived state added later