OoliteProject / oolite

The main Oolite repository.
https://www.oolite.space
562 stars 73 forks source link

Fix for correct context when adding weapons to player ship #387

Closed phkb closed 3 years ago

phkb commented 3 years ago

Adding a weapon to the player ship via a script passes a "purchase" context through to the "allowAwardEquipment" condition script call, even when the weapon is added via script. This code change enforces the "scripted" context when a weapon change is made by script.

phkb commented 3 years ago

Belatedly realised that this is what dybal was seeking to achieve with #377. No compile errors on this one, though.