Task #1234

/cg_autoSwitch has deprecated "bitflags" in the code

Added by keMoN 8 months ago.

Status:New% Done:

0%

Priority:LowSpent time:-
Assignee:-
Category:Mod CGAME
Target version:2.78
OS: Arch:

Description

https://github.com/etlegacy/etlegacy/blob/72fc9e39193945d82be24208dcbb9c29cba8d596/src/cgame/cg_event.c#L376

cg_autoswitch has some strange flags in the code and only 0 and 1 really make sense.
// 0 - "Off"
// 1 - "Always Switch"
// 2 - "If New"
// 3 - "If Better"
// 4 - "New or Better"

Also available in: Atom PDF