]> git.smokeofanarchy.ru Git - space-station-14.git/commit
fix: don't retroactively drain disabled batteries (#37364)
authorPerry Fraser <perryprog@users.noreply.github.com>
Mon, 12 May 2025 21:24:00 +0000 (17:24 -0400)
committerGitHub <noreply@github.com>
Mon, 12 May 2025 21:24:00 +0000 (23:24 +0200)
commite8c8cae31ebd9912a0dfc99e4d72404c992b4951
tree76847d892aa4896b0d64210c985431bfdef80570
parentcec13166a8158464b8773f7af75d0a98622c1aca
fix: don't retroactively drain disabled batteries (#37364)

* fix: don't retroactively drain disabled batteries

If something that used PowerCellDraw temporarily disabled said draw,
once it became re-enabled the system would play catch-up trying to
drain the battery for all the time since the component was disabled.

* fixup! fix: don't retroactively drain disabled batteries
Content.Shared/PowerCell/SharedPowerCellSystem.cs
Content.Shared/PowerCell/ToggleCellDrawSystem.cs