In DOS, this was part of drawWorld() - for TFE I split it out to limit the amount of game code in the renderer.
| 480 | // In DOS, this was part of drawWorld() - |
| 481 | // for TFE I split it out to limit the amount of game code in the renderer. |
| 482 | void handleVisionFx() |
| 483 | { |
| 484 | // Countdown to enable the night vision effect. |
| 485 | if (s_visionFxCountdown != 0) |
| 486 | { |
| 487 | s_visionFxCountdown--; |
| 488 | if (s_visionFxCountdown == 0) |
| 489 | { |
| 490 | setLuminanceMask(JFALSE, JTRUE, JFALSE); |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | // Countdown to disable the night vision effect. |
| 495 | if (s_visionFxEndCountdown != 0) |
| 496 | { |
| 497 | s_visionFxEndCountdown--; |
| 498 | if (s_visionFxEndCountdown == 0) |
| 499 | { |
| 500 | setLuminanceMask(JFALSE, JFALSE, JFALSE); |
| 501 | } |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | void mission_exitLevel() |
| 506 | { |
no test coverage detected