My recent pull request fixing duplicate draws on the skybox introduced a regression - if r_3dsky was set to 0, damage would not get drawn at all. Apparently, if that is the case bDrawingSkybox was always being set to true. Weird.
Anyway, as it turns out that's why the third argument in that hook exists, which has the behavior we are actually looking for.
My recent pull request fixing duplicate draws on the skybox introduced a regression - if r_3dsky was set to 0, damage would not get drawn at all. Apparently, if that is the case bDrawingSkybox was always being set to true. Weird. Anyway, as it turns out that's why the third argument in that hook exists, which has the behavior we are actually looking for.