diff options
| author | aura <nw@moneybot.cc> | 2026-03-05 07:26:54 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-05 07:26:54 +0100 |
| commit | 4d263a68547daaa560cdb9363ffe379df7a1076f (patch) | |
| tree | 0da9423dfe8dab651fd8a13d2b23ac02ab284d37 /src/game/world/bsp_draw.cpp | |
| parent | 784d6e46884f47c5d7c02380a1bbf09747bbd047 (diff) | |
fix non-sweep traces, refactor some bsp, fix sprite crash in view2d
Diffstat (limited to 'src/game/world/bsp_draw.cpp')
| -rw-r--r-- | src/game/world/bsp_draw.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/world/bsp_draw.cpp b/src/game/world/bsp_draw.cpp index 30e6731..3f5b067 100644 --- a/src/game/world/bsp_draw.cpp +++ b/src/game/world/bsp_draw.cpp @@ -2,6 +2,7 @@ #include "../../game.h" #include "../../render/gl_3d.h" #include "../objlist.h" +#include "bsp.h" #include "map.h" #include "trace.h" @@ -70,7 +71,7 @@ void bsp_draw_sprites( BSP* bsp, GAME_DATA* game ) { LIST<MAP_SPRITE>* sprites = &game->state.map->sprites; for( U32 i = 0; i < sprites->size; ++i ) { MAP_SPRITE* sprite = &sprites->data[i]; - BSP_TRACE t; + BSP_TRACE t{ .hitmask = HG_SOLID }; t.in_start = player_get_view_pos( objl->pl ); t.in_end = sprite->pos; |
