diff options
Diffstat (limited to 'src/game/world')
| -rw-r--r-- | src/game/world/map.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/world/map.cpp b/src/game/world/map.cpp index 7b8060b..fb94215 100644 --- a/src/game/world/map.cpp +++ b/src/game/world/map.cpp @@ -113,6 +113,9 @@ STAT map_polygon_verts_from_section( WORLD_MAP* m, MAP_POLYGON* p, CFG_SECTION* } void map_polygon_calc_bounds( MAP_POLYGON* p ) { + p->mins = { INFINITY, INFINITY, INFINITY }; + p->maxs = { -INFINITY, -INFINITY, -INFINITY }; + p->vertices.each( fn( MAP_VERTEX* v ) { p->mins.x = min( v->pos.x, p->mins.x ); p->mins.y = min( v->pos.y, p->mins.y ); |
