diff options
| author | aura <nw@moneybot.cc> | 2026-03-20 20:21:24 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-20 20:21:24 +0100 |
| commit | 8099c2a11fb4010542973bf85359935da19e2192 (patch) | |
| tree | 13f05312aa19e87c9357faeec7f84f864166ab57 /src/game | |
| parent | a156bc15880e9e250c9c40f0dde431e077109dc1 (diff) | |
move multiple objects
Diffstat (limited to 'src/game')
| -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 ); |
