diff --git a/src/character.cpp b/src/character.cpp index 491ec06011166..51d7ec0ae621c 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -6945,28 +6945,21 @@ std::string Character::height_string() const int Character::height() const { - int height = init_height; - int height_pos = 15; - - const static std::array v = {{ 290, 240, 190, 140, 90 }}; - for( const int up_bound : v ) { - if( up_bound >= init_height && up_bound - init_height < 40 ) { - height_pos = up_bound - init_height; - } - } - - if( get_size() == MS_TINY ) { - height = 90 - height_pos; - } else if( get_size() == MS_SMALL ) { - height = 140 - height_pos; - } else if( get_size() == MS_LARGE ) { - height = 240 - height_pos; - } else if( get_size() == MS_HUGE ) { - height = 290 - height_pos; - } - - // TODO: Make this a player creation option - return height; + switch( get_size() ) { + case MS_TINY: + return init_height - 100; + case MS_SMALL: + return init_height - 50; + case MS_MEDIUM: + return init_height; + case MS_LARGE: + return init_height + 50; + case MS_HUGE: + return init_height + 100; + } + + debugmsg( "Invalid size class" ); + abort(); } int Character::get_bmr() const