| 1148 | } |
| 1149 | |
| 1150 | void SayNo(std::optional<Vector3i> referencePosition) |
| 1151 | { |
| 1152 | static int lastNoTimestamp = NO_VALUE; |
| 1153 | static Vector3i lastReferencePosition = Vector3i::Zero; |
| 1154 | |
| 1155 | if (referencePosition.has_value()) |
| 1156 | { |
| 1157 | if (referencePosition.value() == lastReferencePosition) |
| 1158 | return; |
| 1159 | |
| 1160 | lastReferencePosition = referencePosition.value(); |
| 1161 | } |
| 1162 | |
| 1163 | if ((GlobalCounter - lastNoTimestamp) > FPS) |
| 1164 | { |
| 1165 | lastNoTimestamp = GlobalCounter; |
| 1166 | SoundEffect(SFX_TR4_LARA_NO_ENGLISH, nullptr, SoundEnvironment::Always); |
| 1167 | } |
| 1168 | } |
| 1169 | |
| 1170 | void PlaySecretTrack() |
| 1171 | { |
no test coverage detected