1
0
Fork 0

- changed MAX_GEAR to an enum to avoid upsetting non-conformant C++

compilers
This commit is contained in:
curt 2001-11-20 22:03:40 +00:00
parent 804c9adbb0
commit bcca6a88a4
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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;