const float maxJumpCountLimit = 3;//初期値
float max_jump_count = maxJumpCountLimit;

この処理でmax_jump_countがconstになったりはしない。
どこか他のところが間違ってる。