Commit Graph
4539 Commits
Author SHA1 Message Date
drian b615fe449e Merge remote-tracking branch 'remotes/origin/next' into release_v1.3 2021-02-10 21:00:09 +01:00
drian bc6941d30c Merge remote-tracking branch 'remotes/origin/libcurl4_1202_hotfix' into release_v1.3 2021-02-10 20:40:40 +01:00
drian e39de97f2f Merge remote-tracking branch 'remotes/origin/experimental' into release_v1.3 2021-02-10 19:54:05 +01:00
aurhat 4ce73125c2 Upgrade SDL2 to v. 2.0.14 2021-02-06 17:10:53 +01:00
aurhat 8bb1aba638 Fix warnings for gcc 9.3 2020-11-03 22:15:34 +01:00
aurhat 2ecb3646e1 Fix warning for clang 10 2020-11-03 12:52:37 +01:00
justgo97andaurhat fd89c56f17 fix compiling warnings in GCC 2020-11-03 12:52:37 +01:00
ac-stefandaurhat 6ec9d3cf80 fix seedlen 2020-11-03 12:52:37 +01:00
Frank LENORMANDandaurhat 1009a4f050 some fixes 2020-11-02 22:42:24 +01:00
Šarūnas Snapkauskasandaurhat 4f8f2737a4 server: fix blocking of non-existent primary guns
I think driAn meant to use OR, as using AND leads to FALSE.
2020-11-02 22:42:00 +01:00
aurhat 9b41c110c6 Fix clang warnings and crashes 2020-11-02 22:42:00 +01:00
aurhat c2e09cac76 Abide by the rules for reference objects
It fixes crashes on certain maps (also official).
It bases on 3ec0b1218d
2020-11-02 22:42:00 +01:00
aurhat ae65a64828 Fix some errors and warnings for GCC 6
* do not use std::abs() because math.h includes one, that converts ints
      to double. Use own iabs(), which directly uses labs() instead.
    * don't use the word "gamma" as name for variables
    * don't use a homebrew round() function

It bases mainly on 98d01d1f34
2020-11-02 22:42:00 +01:00
ac-stefandaurhat f8d3e968ed fix clang warnings 2020-02-08 14:33:18 +01:00
aurhat a6a8292c87 Remove remnants of Keys menu in the launcher for Mac 2020-01-26 13:53:33 +01:00
aurhat 6d5d0ff59c Upgrade SDL2 to v. 2.0.10 and SDL2_image to v. 2.0.5 2020-01-26 13:53:05 +01:00
aurhat 479df61060 Upgrade Ogg and Vorbis frameworks from SDL2_mixer v. 2.0.4 2019-01-12 23:47:03 +01:00
aurhat bd55b17292 Upgrade SDL2_image library to v. 2.0.4 2019-01-12 23:46:55 +01:00
aurhat 3478605cd1 Upgrade SDL2 library to v. 2.0.9 2019-01-12 23:46:35 +01:00
aurhat 6ded50464d Upgrade SDL2_image library to 2.0.3 version
Note: SDL2_image.lib, zconf.h, zlib.h, have no changes.
2018-05-04 11:21:18 +02:00
aurhat 5ee4d970fe Upgrade SDL2 library to 2.0.8 version 2018-05-04 11:18:48 +02:00
aurhat c565139b17 Improve installer for Windows 2018-05-02 17:00:44 +02:00
ac-stefandaurhat 7b5c91a3da temporary win10 hotfix changes
Some changes to allow the current experimental branch to be used for a
hotfix release for win10 users.

The latest win10-update broke compatibility with SDL1.2 - and apparently
MS is not going to fix it. This hotfix allows win10 users to use our
experimental SDL2-based client.

It is quite incompatible with the 1.2.0.2 release - but it's good enough
to be played in pubs.

Coopedit will not work and quite a few custom maps won't work properly.
This is due to lots of changes in the map file format and does not mean,
that those custom maps can not be played in future game releases - they
just need to be reworked. See akimbo2 to check out the reworked maps, btw.
The old official maps and most conservative custom maps should be fine.

Due to some physics changes, players of the hotfix client will have some
advantages and some disadvantages compared to the regular clients, so DO
NOT USE THE HOTFIX CLIENT TO PLAY COMPETITIVELY.

By default, if an incompatible map is loaded in multiplayer, the client
will disconnect automatically. This can be disabled (disconnectonmaperror),
but will probably get you marked as cheater, because on incompatible maps,
model clipping may not work properly. Just stick to compatible maps...
2018-02-10 11:28:51 +01:00
aurhat 11efe9f883 Update Ogg and Vorbis frameworks
Taken from SDL2_mixer v.2.0.2
2018-02-10 11:28:51 +01:00
aurhat 7da7efcbd8 Upgrade SDL2_image library to 2.0.2 version 2018-02-10 11:28:51 +01:00
aurhat 61170c787f Upgrade SDL2 library to 2.0.7 version 2018-02-10 11:28:50 +01:00
aurhat a720a98faa Fix looking up on Mac using SDL 2.0.6 framework 2018-02-10 11:28:50 +01:00
aurhat a06c939405 Upgrade SDL2 library to 2.0.6 version 2018-02-10 11:28:50 +01:00
aurhat e2bb588807 Update Xcode project 2018-02-10 11:28:50 +01:00
ac-stefandaurhat 135f9f4a90 fully automatic keymap generation
If a key is not listed in keymap.cfg but SDL provides a good enough name
for the corresponding scancode, a keymap entry is generated automatically.

If a key can't be found when adding a bind, it is checked, if SDL can
resolve the key name. The resolved keybind is then used to recreate the
keymap entry - and the bind can succeed.

Some SDL names for scancodes may not be usable as keymap names: if the
name contains (, ), $ or ", it will be rejected. Also, SDL does not
provide names for all scancodes. Scancode names provided by SDL can be
platform-dependant, therefore recreating the bind may fail on a different
platform.

However, the feature should work fine with most nonstandard keys - and the
information written to clientlog can be used to amend keymap.cfg
2018-02-10 11:28:50 +01:00
ac-stefandaurhat e5077d0226 use both keycodes and scancodes of keypress events
If a keycode can not be found on the list from keymap.cfg a second search
is done for the scancode. This should be helpful to assign
layout-dependent keys with rare keycodes.

Also: use a hash table for the keys (instead of a list).

Add two new scan codes for dead keys on german layouts: LEFTOF1 and
LEFTOFDEL.
2018-02-10 11:28:50 +01:00
aurhat bf733615f7 Update Xcode project to SDL2
Used original 64-bit frameworks: SDL2 v.2.0.5, SDL2_image v.2.0.1,
and from SDL2_mixer v.2.0.1: Ogg v.1.3.1 and Vorbis v.1.3.3.
For potential custom compiling AC for 32-bit Mac there will be needed
self-compiled 32-bit frameworks.
Launcher has to be compiled as 32-bit, otherwise it won't start
nowadays.
2018-02-10 11:28:49 +01:00
ac-stefandaurhat 19bb560dd2 more SDL2-related backports from sauer
* use keyrepeat and textinput switch code from sauer (on windows, opening
  a console with "t" also produced a "t" as text otherwise)
* screenw and screenh are now cubescript-variables that always reflect
  the actual resolution of the screen or the window

DOCREF screenw screenh
2018-02-10 11:28:49 +01:00
ac-stefandaurhat f0f8eac770 remove most platform dependent exceptions for SDL2 code
* switch travis to trusty
* new parameter fullscreendesktop: uses desktop resolution for fullscreen
* "colorbits" removed, since it's no longer supported
* scr_w/scr_h no longer necessarily reflect the true display resolution
  (with fullscreendesktop = 1 and fullscreen = 1, scr_w and scr_h are
  ignored)
* desktopw and desktoph are now guaranteed to have nonzero values
* fallback to old mouse behaviour when SDL_SetRelativeMouseMode fails
* require a click into the window to grab the mouse
* scr_w/scr_h default to desktop resolution on first run

thx sauerbraten :)

DOCREF fullscreendesktop colorbits
2018-02-10 11:28:49 +01:00
aurhat 8b144afb4e Upgrade VS project to SDL2
Used SDL2 v. 2.0.5 and SDL2_image v. 2.0.1
2018-02-10 11:28:49 +01:00
ac-stefandaurhat e75dfbe4c7 fix/finish SDL2 port
* implement gamma
* menu keys fixed
* add support for horizontal mousewheel and some more mouse buttons
* fix keyrepeat
* fix window resizing
* fix compiler warnings
* use SDL to access clipboard
* remove X11-dependency
* some surplus SDL headers removed
* fix setdesktopres
* fix vsync
* improve fullscreentoggle on linux
* remove togglegrab
2018-02-10 11:28:49 +01:00
Jani-Markus Maunusandaurhat f86579533a Ported AC to SDL2 2018-02-10 11:28:48 +01:00
aurhat f53f110926 Fix crash in client compiled in CB 17.12 on Windows
It happened for -O3 compiler flag.
2018-01-27 09:35:07 +01:00
aurhat 4cbc4ab7dc Improve installer for Windows 2017-12-12 21:31:46 +01:00
Lee Salzman bda6248d23 always use scissor on reflections 2017-11-29 15:35:10 -05:00
Lee Salzman e58e8f2eb6 clear color and depth of reflection at same time 2017-11-29 15:23:31 -05:00
Jani-Markus Maunusandaurhat aba2657671 Restored old default value for reflectclip 2017-11-29 19:45:26 +01:00
Jani-Markus Maunusandaurhat a2b61a1792 Fixed HUD components appearing in water reflection
Clear the region on which the world is rendered (vertically flipped)
to create the reflection texture - otherwise regions not painted over
still contain data from the previous frame, including some HUD elements
in the bottom-left corner of the screen.
2017-11-29 19:45:16 +01:00
aurhat c9d9b752a1 Update scripts for preparing Windows installer
Also cleanup
2017-11-25 03:06:06 +01:00
ac-stef 45bded0150 fix zipmod
avoid tripping asserts in VC
2017-11-22 20:25:34 +01:00
aurhat 7cc454c11a Define working directory in VS project 2017-11-19 13:34:34 +01:00
aurhat 830f8c0cf7 Cleanup
Thanks DADSGETNDOWN for the report for maps/mapmodel configs.
2017-11-18 14:04:59 +01:00
aurhat d3bd26a62d Fix animation during quicknadethrow attack
1. Before animation of the moving hand for throwing the grenade was cut,
now it's complete, like for normal grenade throw. To do that the code for
switching to previous weapon has changed location. selectweapon() isn't
used there, because if player has more grenades than 1, then after a throw
for a moment a grenade appeared in a hand, and just later previous weapon.
2. The changed code in quicknadethrow() prevents from shooting using right
mouse button, after starting to shoot quickly after grenade throw
(especially when player has more grenades than 1).
3. Also fixed resetting the "quicknade" variable.
2017-10-15 13:49:53 +02:00
aurhat 6ea3c499ce Remove involuntary shooting when switching weapons
It happened in case of automatic weapons.
2017-10-15 13:33:46 +02:00
aurhat d841896e7b Fix shooting during picking up akimbo
It prevents from shooting using right mouse button, when grenade was
activated and player picks up akimbo.
2017-10-15 13:29:50 +02:00