if (cineMode) then
// Save the UI state so that we can restore it later.
if (not bj_cineModeAlreadyIn) then
set bj_cineModeAlreadyIn = true
set bj_cineModeSavedSeed = GetRandomInt(0, 1000000)
endif
// Use a fixed random seed, so that cinematics play consistently.
call SetRandomSeed(0)
else
set bj_cineModeAlreadyIn = false
// Perform global changes
call SetRandomSeed(bj_cineModeSavedSeed)
endif