Two entities have touched, so run their touch functions.
(SubgameEntity e1, trace_t trace, GameExportsImpl gameExports)
| 100 | * Two entities have touched, so run their touch functions. |
| 101 | */ |
| 102 | private static void SV_Impact(SubgameEntity e1, trace_t trace, GameExportsImpl gameExports) { |
| 103 | // assuming edicts are created only on game side |
| 104 | SubgameEntity e2 = (SubgameEntity) trace.ent; |
| 105 | |
| 106 | if (e1.touch != null && e1.solid != Defines.SOLID_NOT) |
| 107 | e1.touch.touch(e1, e2, trace.plane, trace.surface, gameExports); |
| 108 | |
| 109 | // fixme: why trace plane & surface are not passed here? |
| 110 | if (e2.touch != null && e2.solid != Defines.SOLID_NOT) |
| 111 | e2.touch.touch(e2, e1, GameBase.dummyplane, null, gameExports); |
| 112 | } |
| 113 | |
| 114 | private static int SV_FlyMove(SubgameEntity ent, float time, int mask, GameExportsImpl gameExports) { |
| 115 | edict_t hit; |
no test coverage detected