| 234 | } |
| 235 | |
| 236 | bool NavMesh::setProtectedAlwaysRender(void *obj, const char *index, const char *data) |
| 237 | { |
| 238 | NavMesh *mesh = static_cast<NavMesh*>(obj); |
| 239 | bool always = dAtob(data); |
| 240 | if(always) |
| 241 | { |
| 242 | if(!gEditingMission) |
| 243 | mesh->mNetFlags.set(Ghostable); |
| 244 | } |
| 245 | else |
| 246 | { |
| 247 | if(!gEditingMission) |
| 248 | mesh->mNetFlags.clear(Ghostable); |
| 249 | } |
| 250 | mesh->mAlwaysRender = always; |
| 251 | mesh->setMaskBits(LoadFlag); |
| 252 | return true; |
| 253 | } |
| 254 | |
| 255 | FRangeValidator ValidCellSize(0.01f, 10.0f); |
| 256 | FRangeValidator ValidSlopeAngle(0.0f, 89.9f); |
nothing calls this directly
no test coverage detected