This commit altered how physics code works, changing the hash.
This is a regression.
The rest of the changes in
0e542a1e didn't update the hash, and logically speaking shouldn't alter how physics works.
Undid changes which led to the hash change, at the tiny cost of some lost regained performance.
test_sv_game:
stage: test
script:
- - export EXPECT=f5fbfbd04a22e781397cfd14db367419
+ - export EXPECT=ee6d65824c57cb6d83cba31481a21822
- qcsrc/tools/sv_game-hashtest.sh
- exit $?
}
// acceleration
- float wishvel_len = vlen(wishvel);
- float wishspeed = min(wishvel_len, this.com_phys_vel_max);
-
- // same as wishdir = normalize(wishvel); but cheaper
- const vector wishdir = (wishvel_len ? wishvel / wishvel_len : '0 0 0');
+ const vector wishdir = normalize(wishvel);
+ float wishspeed = min(vlen(wishvel), this.com_phys_vel_max);
if (this.com_phys_air) {
if (!(this.flags & FL_WATERJUMP)) {