Commit Graph
7876 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 5d7035a14b Fix libpng 1.6 warnings
AC printed "libpng warning: iCCP: known incorrect sRGB profile" for PNG
images with incorrect profile. To fix it the iCCP chunk was removed from
the images, using the command: mogrify file.png
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
aurhat 05003f9238 Update readme 2020-07-19 14:20:25 +02:00
aurhat 98922de3b2 Fix libpng 1.6 warnings
AC printed "libpng warning: iCCP: known incorrect sRGB profile" for PNG
images with incorrect profile. To fix it the iCCP chunk was removed from
the images, using the command: mogrify file.png
2020-06-21 09:08:11 +02:00
ac-stefandaurhat f8d3e968ed fix clang warnings 2020-02-08 14:33:18 +01:00
aurhat 8813521fad Replace *.ac-akimbo.net pck servers by packages.cubers.net 2020-02-02 08:35:19 +01:00
ac-stefandaurhat 4fe1b97d00 removed huge unnecessary file
The file packages/models/playermodels/RVSF/07_Blue-Red.psd had a filesize
of over nine megabyte - and was of no use to the game. It made all recent
game packages 9MB bigger than they had to be. That's about the size of
all game textures combined...
If someone still needs the file, check it out from an older commit.
2020-02-02 08:34:46 +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 f58ea22b46 Replace *.ac-akimbo.net pck servers by packages.cubers.net 2018-05-20 12:26:21 +02: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 b19a761347 Workaround for travis-ci/travis-ci#8317 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 9f537b0876 Fix unquoted semicolons
Thanks Robtics
2018-01-27 09:35:07 +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