EXT-7499 FIX prevent other avatars from remaining ruth
Fixed random to use ll_rand() so that it compiles across all architectures. This should fix the trunk build. Code reviewed by CGmeow-7.2.2
parent
e57ae45174
commit
c1aaca36ae
|
|
@ -68,6 +68,7 @@
|
|||
#include "llmoveview.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llquantize.h"
|
||||
#include "llrand.h"
|
||||
#include "llregionhandle.h"
|
||||
#include "llresmgr.h"
|
||||
#include "llselectmgr.h"
|
||||
|
|
@ -6791,7 +6792,7 @@ void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys )
|
|||
|
||||
// parse visual params
|
||||
S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_VisualParam);
|
||||
bool drop_visual_params_debug = gSavedSettings.getBOOL("BlockSomeAvatarAppearanceVisualParams") && (random()%2)==0; // pretend that ~12% of AvatarAppearance messages arrived without a VisualParam block, for testing
|
||||
bool drop_visual_params_debug = gSavedSettings.getBOOL("BlockSomeAvatarAppearanceVisualParams") && (ll_rand(2) == 0); // pretend that ~12% of AvatarAppearance messages arrived without a VisualParam block, for testing
|
||||
if( num_blocks > 1 && !drop_visual_params_debug)
|
||||
{
|
||||
BOOL params_changed = FALSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue