Skip to content

Commit

Permalink
Fixed Slideshow action numbering (#6198)
Browse files Browse the repository at this point in the history
Slideshow Action names would not be named on clients because counting was only done on the server, this would result in all actions on one object showing up in the same slideshow set
  • Loading branch information
vabene1111 authored and jonpas committed Mar 17, 2018
1 parent 21fcd81 commit 7f321a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/slideshow/functions/fnc_createSlideshow.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ if (isServer) then {
{
_x setObjectTextureGlobal [0, _images select 0];
} count _objects;

// Number of slideshows (multiple modules support)
GVAR(slideshows) = GVAR(slideshows) + 1;
};

// Number of slideshows (multiple modules support)
GVAR(slideshows) = GVAR(slideshows) + 1;

private _currentSlideshow = GVAR(slideshows); // Local variable in case GVAR gets changed during execution of below code

// If interaction menu module is not present, set default duration value
Expand Down

0 comments on commit 7f321a9

Please sign in to comment.