| 2235 | } |
| 2236 | |
| 2237 | bool PageInSound(int id) { |
| 2238 | if (id == -1) |
| 2239 | return false; |
| 2240 | |
| 2241 | if (Dedicated_server) |
| 2242 | return false; |
| 2243 | |
| 2244 | // sometimes, id passed was 0xffff which seems like a int16_t -1. The if statement |
| 2245 | // ensures that the array Sounds_to_free is dealt with properly. |
| 2246 | if (Sound_system.CheckAndForceSoundDataAlloc(id)) { |
| 2247 | Sounds_to_free[id] = 1; |
| 2248 | return true; |
| 2249 | } |
| 2250 | |
| 2251 | return false; |
| 2252 | } |
| 2253 | |
| 2254 | void PageInDoor(int id) { |
| 2255 | // Set sounds |
no test coverage detected