DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.88k stars 251 forks source link

Fix crash when loading multiplayer level #616

Closed pzychotic closed 1 month ago

pzychotic commented 1 month ago

Pull Request Type

Description

Fix crash when loading multiplayer level with outside/terrain player spawn position.

player::start_roomnum and object::roomnum encode a terrain cell number with the highest bit set. So when accessing Terrain_seg[] we need to remove that bit to get a valid index.

Related Issues

Fixes #442

Screenshots (if applicable)

Checklist

Additional Comments