Fixed Slideshow action numbering (#6198)

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
This commit is contained in:
vabene1111 2018-03-17 18:12:33 +01:00 committed by jonpas
parent bda72663ac
commit b5eb4ac834

View File

@ -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