diff --git a/source_files/ddf/ddf_main.cc b/source_files/ddf/ddf_main.cc index 9fcbd7726..f8b4b46a7 100644 --- a/source_files/ddf/ddf_main.cc +++ b/source_files/ddf/ddf_main.cc @@ -1311,7 +1311,7 @@ void DDFMainGetPercentAny(const char *info, void *storage) // check that the string is valid epi::CStringCopyMax(s, info, 100); - for (p = s; epi::IsDigitASCII(*p) || *p == '.'; p++) + for (p = s; epi::IsDigitASCII(*p) || *p == '-' || *p == '.'; p++) { /* do nothing */ } diff --git a/source_files/ddf/ddf_weapon.cc b/source_files/ddf/ddf_weapon.cc index 687948539..d9ea2b1c4 100644 --- a/source_files/ddf/ddf_weapon.cc +++ b/source_files/ddf/ddf_weapon.cc @@ -102,7 +102,7 @@ static const DDFCommandList weapon_commands[] = { DDF_FIELD("REFIRE_INACCURATE", dummy_weapon, refire_inacc_, DDFMainGetBoolean), DDF_FIELD("SHOW_CLIP", dummy_weapon, show_clip_, DDFMainGetBoolean), DDF_FIELD("SHARED_CLIP", dummy_weapon, shared_clip_, DDFMainGetBoolean), - DDF_FIELD("BOBBING", dummy_weapon, bobbing_, DDFMainGetPercent), + DDF_FIELD("BOBBING", dummy_weapon, bobbing_, DDFMainGetPercentAny), DDF_FIELD("SWAYING", dummy_weapon, swaying_, DDFMainGetPercent), DDF_FIELD("IDLE_WAIT", dummy_weapon, idle_wait_, DDFMainGetTime), DDF_FIELD("IDLE_CHANCE", dummy_weapon, idle_chance_, DDFMainGetPercent),