Skip to content

Rework G_SetCustomExitVars to allow skipstats 2

SteelT requested to merge customexitvars-rework into next

This refactors G_SetCustomExitVars to allow setting skipstats to 2, letting a post-level cutscene be skipped. This replaces the old behavior, breaking compatibility with scripts, though it was already broken to begin with. So going forward, these are the supported ways of using the function.

  • G_SetCustomExitVars() [reset to defaults]
  • G_SetCustomExitVars(int) [nextmap override only]
  • G_SetCustomExitVars(nil, int) [skipstats only - Accepts 0, 1 or 2]
  • G_SetCustomExitVars(int, int) [both of the above]

Also code optimization as a result, too!

Edited by SteelT

Merge request reports