diff options
| author | xolatile | 2025-07-21 06:06:50 +0200 |
|---|---|---|
| committer | xolatile | 2025-07-21 06:06:50 +0200 |
| commit | 09a43565940be30b233fa8730e65d531a454a03b (patch) | |
| tree | e7ee95b2964b68611701643376ed500bb7d2ddcd /src/fpsgame/entities.cpp | |
| parent | 39de2c68c8a3f9cd7cffef9364a59c9d412b907e (diff) | |
| download | xolatile-badassbug-09a43565940be30b233fa8730e65d531a454a03b.tar.xz xolatile-badassbug-09a43565940be30b233fa8730e65d531a454a03b.tar.zst | |
Cleaned 95% of -Wall -Wextra...
Diffstat (limited to 'src/fpsgame/entities.cpp')
| -rw-r--r-- | src/fpsgame/entities.cpp | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/src/fpsgame/entities.cpp b/src/fpsgame/entities.cpp index 3403c2e..63d35d0 100644 --- a/src/fpsgame/entities.cpp +++ b/src/fpsgame/entities.cpp @@ -77,30 +77,30 @@ namespace entities switch(i) { case I_SHELLS: - + [[fallthrough]]; case I_BULLETS: - + [[fallthrough]]; case I_ROCKETS: - + [[fallthrough]]; case I_ROUNDS: - + [[fallthrough]]; case I_GRENADES: - + [[fallthrough]]; case I_CARTRIDGES: if(m_noammo) continue; break; case I_HEALTH: - + [[fallthrough]]; case I_BOOST: - + [[fallthrough]]; case I_TINYHEALTH: - + [[fallthrough]]; case I_TINYARMOUR: - + [[fallthrough]]; case I_GREENARMOUR: - + [[fallthrough]]; case I_YELLOWARMOUR: - + [[fallthrough]]; case I_QUAD: if(m_noitems) continue; break; @@ -116,6 +116,7 @@ namespace entities { case TELEPORT: if(e.attr2 > 0) preloadmodel(mapmodelname(e.attr2)); + [[fallthrough]]; case JUMPPAD: if(e.attr4 > 0) preloadmapsound(e.attr4); @@ -394,6 +395,13 @@ namespace entities { switch(e.type) { + case TELEDEST: + { + vec dir; + vecfromyawpitch(e.attr1, 0, 1, 0, dir); + renderentarrow(e, dir, 4); + break; + } case TELEPORT: loopv(ents) if(ents[i]->type == TELEDEST && e.attr1==ents[i]->attr2) { |
