| 1397 | } |
| 1398 | } |
| 1399 | |
| 1400 | RString CreateCondition(RString presenceCondition, float presence) |
| 1401 | { |
| 1402 | if (presence < 1) |
| 1403 | { |
| 1404 | if (strcmp(presenceCondition, "true") == 0) |
| 1405 | return Format("%g > random 1", presence); |
| 1406 | return Format("(%s) and (%g > random 1)", (const char*)presenceCondition, presence); |
| 1407 | } |
| 1408 | else |
| 1409 | return presenceCondition; |
| 1410 | } |
| 1411 | |
| 1412 | static RString WriteVehicle(QOStream& out, const ArcadeUnitInfo& unit, EditorObjectType& typeSoundSource, |
no test coverage detected