mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-27 02:27:46 +03:00
## Mirror of PR #26236: [Fix barotrauma pressure protection](https://github.com/space-wizards/space-station-14/pull/26236) from <img src="https://avatars.githubusercontent.com/u/10567778?v=4" alt="space-wizards" width="22"/> [space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14) ###### `db81438d30f83a542abe6c81c2ce4a5040aa3ddb` PR opened by <img src="https://avatars.githubusercontent.com/u/8107459?v=4" width="16"/><a href="https://github.com/PJB3005"> PJB3005</a> at 2024-03-18 15:16:25 UTC --- PR changed 1 files with 4 additions and 2 deletions. The PR had the following labels: - Status: Needs Review --- <details open="true"><summary><h1>Original Body</h1></summary> > Oops > > In #26217 I re-organized the logic for the calculation. Part of that was moving the logic for GetFeltLowPressure and GetFeltHighPressure to be done before we actually check the hazard thresholds. What I didn't realize is that, with how our pressure protection is set up, these functions can return values so extreme they rebound into the other category. > > For example, according to the math, when you're wearing a hardsuit in a low-pressure environment you have "felt" pressure of 1000 kPa. Yeah that's not right. > > Now these functions clamp their result to OneAtmosphere, in the appropriate direction (101.3 kPa). > > Fixes #26234 > > 🆑 > - fix: Fixed hardsuits in space causing high pressure damage </details> Co-authored-by: SimpleStation14 <Unknown>
13 KiB
13 KiB