FAForever / fa

Lua code for FAF
221 stars 228 forks source link

Fix intel state not being assigned #6287

Closed lL1l1 closed 1 week ago

lL1l1 commented 1 week ago

Description of the proposed changes

Caused by #6273. Intel was not being put into the intel tables used for the intel state table because of a bad order of operations on some booleans.

Testing done on the proposed changes

UI_Lua LOG('number' ~= 'table') prints true, while `UI_Lua LOG(not 'number' == 'table') prints false. Enemy radar blips show up ingame.

Checklist

- [ ] Changes are annotated, including comments where useful - [ ] Changes are documented in the changelog for the next game version Not necessary.

4z0t commented 1 week ago

Because not is applied to string first. It has higher precedence than equal operator.