dbab38b8ea
Use a std::optional<vms_vector> to store the gun point and a flag of whether the gun point is valid. This allows deferring computation of the gun point until it is needed, and avoids recomputing it once it has been computed. This also fixes an obscure case where a robot with its gun positioned at 0,0,0 would be incorrectly considered too far away. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |