ikkentim / SampSharp

A framework for writing game modes for SA-MP in C#. SA-MP is a free Massively Multiplayer Online game mod for the PC version of Rockstar Games Grand Theft Auto: San Andreas.
https://sampsharp.net
Apache License 2.0
210 stars 41 forks source link

Fix Get/Set WindowsParameters being inverted compared to everything else #422

Open EvilShadeZ opened 1 year ago

EvilShadeZ commented 1 year ago

For some reason, the parameters for Windows are inverted compared to everything else. By default these are the values: -1 (Unset) 0 (Closed/Off) 1 (On / Open) For vehicle windows, they are: -1 (Unset) 0 (Open) 1(Closed). This behaviour is making VehicleParameterValue enum work not as intended. I've added some checks and inverted them.