- changed MAX_GEAR to an enum to avoid upsetting non-conformant C++
compilers
This commit is contained in:
parent
804c9adbb0
commit
bcca6a88a4
2 changed files with 4 additions and 2 deletions
|
@ -236,7 +236,7 @@ FGFX::update ()
|
|||
// Update the rumble.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
float totalGear = min(cur_fdm_state->get_num_gear(), MAX_GEAR);
|
||||
float totalGear = min(cur_fdm_state->get_num_gear(), int(MAX_GEAR));
|
||||
float gearOnGround = 0;
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,9 @@ private:
|
|||
|
||||
void set_playing (const char * soundName, bool state = true);
|
||||
|
||||
static const int MAX_GEAR = 20;
|
||||
enum {
|
||||
MAX_GEAR = 20
|
||||
};
|
||||
|
||||
double _old_flap_position;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue