diff options
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) { |
