kayler-renslow / arma-intellij-plugin

A plugin for Intellij IDEA that allows for syntactical analysis, code inspections, and other nifty features for the SQF scripting language in Arma 3.
MIT License
41 stars 9 forks source link

Variable unused #8

Closed Ragebone closed 8 years ago

Ragebone commented 8 years ago

nothing major but its kind of wierd. Version 1.0.3

[_veh,_lights,_time] spawn { // initiate the flipflop. private["_boolean"]; _vehicle = _this select 0; _lights = _this select 1; _boolean = true; // <------- marks _boolean as not used. { _x setCollisionLight _boolean; // but it is used. _boolean = !_boolean; }forEach _vehicle;

kayler-renslow commented 8 years ago

Interesting. This has somehow already been fixed for the next version when I re-implemented almost the entire grammar weeks ago for 1.0.4.