NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
Other
11 stars 9 forks source link

Make zoom speed close to OG:NT #358

Closed nullsystem closed 2 weeks ago

nullsystem commented 1 month ago
Rainyan commented 1 month ago

Perhaps add a

static_assert(NEO_ZOOM_SPEED != 0, "div by zero");

or similar under the var declaration since we're dividing by the value in many places. So if for whatever reason someone were to zero the value, the bug gets caught at compile time.