Handle missing arg exception and set precision to 6
This commit is contained in:
@@ -33,9 +33,11 @@
|
||||
|
||||
|
||||
|
||||
EntityConverter::EntityConverter (const std::string &entityMapFile) :
|
||||
OFFSET_PLAYER(32.0), OFFSET_PICKUP(2.0), BRIGHTNESS_ADJUST(50.0),
|
||||
OUTPUT_PRECISION(10)
|
||||
EntityConverter::EntityConverter (const std::string &entityMapFile)
|
||||
: OFFSET_PLAYER(32.0),
|
||||
OFFSET_PICKUP(2.0),
|
||||
BRIGHTNESS_ADJUST(50.0),
|
||||
OUTPUT_PRECISION(6)
|
||||
{
|
||||
//MUST RUN extractMapInfo method after this constructor
|
||||
haveMapInfo_ = false;
|
||||
@@ -53,7 +55,7 @@ EntityConverter::EntityConverter (const std::string &entityMapFile) :
|
||||
|
||||
EntityConverter::EntityConverter (const std::string &entityMapFile,
|
||||
const std::string &reflexMapFile) : OFFSET_PLAYER(32.0),
|
||||
OFFSET_PICKUP(2.0), BRIGHTNESS_ADJUST(50.0), OUTPUT_PRECISION(10)
|
||||
OFFSET_PICKUP(2.0), BRIGHTNESS_ADJUST(50.0), OUTPUT_PRECISION(6)
|
||||
{
|
||||
haveMapInfo_ = false;
|
||||
// game modes default to enabled
|
||||
|
||||
Reference in New Issue
Block a user