namespace Poseidon
| 1177 | |
| 1178 | } // namespace Poseidon |
| 1179 | bool EnableVisualEffects(Vector3Par effPos, SimulationImportance prec) |
| 1180 | { |
| 1181 | using namespace Poseidon; |
| 1182 | if (IsDedicatedServer()) |
| 1183 | { |
| 1184 | return false; |
| 1185 | } |
| 1186 | Vector3 pos = GScene->GetCamera()->Position(); |
| 1187 | float dist2 = pos.Distance2(effPos); |
| 1188 | return dist2 < Square(ENGINE_CONFIG.objectsZ); |
| 1189 | } |
| 1190 | namespace Poseidon |
| 1191 | { |
| 1192 |
no test coverage detected