]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Clamp after AdjustMoles() (#22907)
authorKevin Zheng <kevinz5000@gmail.com>
Sun, 24 Dec 2023 04:56:39 +0000 (20:56 -0800)
committerGitHub <noreply@github.com>
Sun, 24 Dec 2023 04:56:39 +0000 (23:56 -0500)
commitecf65fbaccbb4bbd9b19359eff0a37e412f19604
tree04db01e12b072524ca64ffe742801b680f8943e3
parent30ff5fde6922d129f63642ef0ce1c0c641d2739b
Clamp after AdjustMoles() (#22907)

Clamping is needed because x - x can be negative with floating point
numbers. If we don't clamp here, the caller always has to call
GetMoles(), clamp, then SetMoles(), which makes this function not very
useful.
Content.Server/Atmos/GasMixture.cs