Steve_Yorkshire Posted March 6, 2015 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
Steve_Yorkshire Posted March 6, 2015 Author 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
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.