Steve_Yorkshire Posted March 6, 2015 Share Posted March 6, 2015 (edited) void Player::updateMove(const Move* move) { delta.move = *move; // Is waterCoverage high enough to be 'swimming'? {//<---yorks uwotm8!? bool swimming = mWaterCoverage > 0.65f && canSwim(); if ( swimming != mSwimming ) { if ( !isGhost() ) { if ( swimming ) mDataBlock->onStartSwim_callback( this ); else mDataBlock->onStopSwim_callback( this ); } mSwimming = swimming; } }//<---yorks uwotm8!? //... I think something might have been removed once but the brackets left in :lol: Edited March 6, 2015 by Steve_Yorkshire Quote Link to comment Share on other sites More sharing options...
Steve_Yorkshire Posted March 6, 2015 Author Share Posted March 6, 2015 So I have been informed that this is actually a legit way of keeping "bool swimming" within an area and thus not exposed to the rest of the function. The case is solve-ed! :oops: 5NNOrp_83RU Quote Link to comment Share on other sites More sharing options...
rlranft Posted April 7, 2015 Share Posted April 7, 2015 Yeah, forced scoping... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.