Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map - Fix ambient light effect flicking #6313

Merged
merged 3 commits into from
Apr 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/map/functions/fnc_determineMapLight.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* 1: Color of the overlay <ARRAY>
*
* Example:
* call ACE_map_fnc_determineMapLight
* [player] call ACE_map_fnc_determineMapLight
*
* Public: No
*/
Expand Down
2 changes: 1 addition & 1 deletion addons/map/functions/fnc_simulateMapLight.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ _colourList sort false;
private _maxColour = _colourList select 0;

//ambient colour fill
_mapCtrl drawIcon [format["#(rgb,8,8,3)color(%1,%2,%3,1)", _r / _maxColour, _g / _maxColour, _b / _maxColour], [1,1,1,_colourAlpha], _mapCentre, _screenSize, _screenSize, 0, "", 0];
_mapCtrl drawIcon ["#(rgb,8,8,3)color(1,1,1,1)", [_r / _maxColour, _g / _maxColour, _b / _maxColour, _colourAlpha], _mapCentre, _screenSize, _screenSize, 0, "", 0];

if (_flashlight == "") then {
//ambient shade fill
Expand Down