diff options
Diffstat (limited to 'src/model/map.cc')
-rw-r--r-- | src/model/map.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/model/map.cc b/src/model/map.cc index 955410f..a59d2ff 100644 --- a/src/model/map.cc +++ b/src/model/map.cc @@ -836,6 +836,7 @@ Model * Map::load(std::string const &name) unsigned int u; float angle; + float r; while (mapfile.getline()) { @@ -1094,10 +1095,10 @@ Model * Map::load(std::string const &name) } else if (mapfile.got_key_int("spawnflags", u)) { particles->particles_entity = spawnflag_isset(u, 2); particles->particles_engine = spawnflag_isset(u, 4); -/* - } else if (mapfile.got_key_float("radius", particles->particles_radius)) { - particles->particles_radius *= LIGHTSCALE; -*/ + + } else if (mapfile.got_key_float("radius", r)) { + particles->set_radius(r * LIGHTSCALE); + } else if (mapfile.got_key()) { mapfile.unknown_key(); } |