mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
CLIENT: Force Weapon Swap bind to 1/2 to mitigate FTE emscripten bug
This commit is contained in:
parent
96de5e4d16
commit
8b0b4f016f
1 changed files with 8 additions and 0 deletions
|
@ -143,6 +143,14 @@ noref void(float apiver, string enginename, float enginever) CSQC_Init =
|
|||
stopwatch_round_sec = stopwatch_round_min = stopwatch_round_hr = 0;
|
||||
stopwatch_round_starttime = time;
|
||||
|
||||
// FTE via emscripten (for the fault of the browser?) bugs out
|
||||
// when using mousewheel. So as a hack, just unbind the mouse
|
||||
// wheel. :/
|
||||
if (platform_is_web) {
|
||||
localcmd("unbind MWHEELUP; unbind MWHEELDOWN\n");
|
||||
localcmd("bind 1 +button4; bind 2 +button4\n");
|
||||
}
|
||||
|
||||
// retrieve custom maps
|
||||
Customs_Get();
|
||||
|
||||
|
|
Loading…
Reference in a new issue