()
| 891 | } |
| 892 | |
| 893 | public static boolean PM_GoodPosition() { |
| 894 | trace_t trace; |
| 895 | float[] origin = { 0, 0, 0 }, end = { 0, 0, 0 }; |
| 896 | int i; |
| 897 | |
| 898 | if (pm.s.pm_type == Defines.PM_SPECTATOR) |
| 899 | return true; |
| 900 | |
| 901 | for (i = 0; i < 3; i++) |
| 902 | origin[i] = end[i] = pm.s.origin[i] * 0.125f; |
| 903 | trace = pm.trace.trace(origin, pm.mins, pm.maxs, end); |
| 904 | |
| 905 | return !trace.allsolid; |
| 906 | } |
| 907 | |
| 908 | /** |
| 909 | * On exit, the origin will have a value that is pre-quantized to the 0.125 |
no test coverage detected