Commit Graph

2369 Commits

Author SHA1 Message Date
terminx 7d15f7fff7 Remove camera distance from the calculation for how much to offset sprites to avoid z buffer fighting.
git-svn-id: https://svn.eduke32.com/eduke32@5945 1a8010ca-5511-0410-912e-c29ae57300e0
2016-12-01 04:06:34 +00:00
hendricks266 a7cc4e8419 Makefile: Fold OSX_STARTUPWINDOW into STARTUP_WINDOW. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5941 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-28 04:35:27 +00:00
terminx d7d28ca24e Fixes build error with winlayer. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5939 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-18 05:29:51 +00:00
terminx be6069fc6d Support vsync in classic mode (SDL 2.x only), and properly handle failure to enable "adaptive" vsync on systems that don't support it.
git-svn-id: https://svn.eduke32.com/eduke32@5938 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-15 21:55:30 +00:00
terminx f3ac89af1b Change default anisotropic filtering setting to the max for the user's system. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5929 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-09 22:51:39 +00:00
terminx 466f3aca30 Support building without a startup window through the Makefile. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5928 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-09 22:51:33 +00:00
terminx f79993a7c9 Mapster32: support sprite blending mode and statnum in clipboard.
git-svn-id: https://svn.eduke32.com/eduke32@5925 1a8010ca-5511-0410-912e-c29ae57300e0
2016-11-01 01:35:41 +00:00
hendricks266 b6b6d1e370 sdlayer: Remove disabling certain mouse features under debug builds. It makes mouse aiming unusable.
If you need to release the mouse for some reason when you can't pull down the console (such as hitting a breakpoint), execute "grabmouse_low(0)" from your debugger. Alt+Tab is your friend.

DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@5921 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-29 16:59:34 +00:00
hendricks266 42bb07cace sdlayer: Work around warning: signed and unsigned type in conditional expression [-Wsign-compare] indirectly caused by the SDL 2.0.5 headers making all preprocessor macro literals unsigned.
git-svn-id: https://svn.eduke32.com/eduke32@5918 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-29 16:59:26 +00:00
hendricks266 a25198d913 Engine: Add #ifdef USE_OPENGL forgotten in r5024 that causes an OOB access in scansector() and glitchy mirrors with USE_OPENGL=0.
git-svn-id: https://svn.eduke32.com/eduke32@5917 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-29 16:59:21 +00:00
hendricks266 67d84df899 Extend undefinetile to also remove voxels, hightile (including skyboxes) and models.
git-svn-id: https://svn.eduke32.com/eduke32@5915 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-25 05:43:53 +00:00
hendricks266 b74c0abd8d Engine: Add vox_undefine().
git-svn-id: https://svn.eduke32.com/eduke32@5914 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-25 05:43:50 +00:00
hendricks266 8a995219de Amend r5910 so that the problem is mitigated even when the map load takes place with a different renderer.
git-svn-id: https://svn.eduke32.com/eduke32@5913 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-25 05:43:46 +00:00
hendricks266 1940940f81 Revert a formatting change from r5725.
git-svn-id: https://svn.eduke32.com/eduke32@5912 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-25 05:43:42 +00:00
hendricks266 da6bc22d35 Polymost: Clear wsprinfo[] upon map load. This should address some remaining instances of wall-ornamented sprite z-fighting.
git-svn-id: https://svn.eduke32.com/eduke32@5910 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-24 21:30:34 +00:00
hendricks266 6c6fdec733 To avoid potential compiler bugs when inlining inline assembly, remove the asm variants of msqrtasm and always use the C version. Compilers generate equivalent or better assembly, and the function is used exactly once, in a routine called during startup.
git-svn-id: https://svn.eduke32.com/eduke32@5909 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-23 19:47:36 +00:00
hendricks266 e24941f0c7 Defs: Fix the parser so tokens with 'x' or 'X' as a second character are only treated as hex constants when the first character is '0'. Introduced in r5822.
git-svn-id: https://svn.eduke32.com/eduke32@5907 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-23 19:47:29 +00:00
hendricks266 94f615cc52 Defs: Fix the off-by-one error when printing line numbers.
git-svn-id: https://svn.eduke32.com/eduke32@5906 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-23 19:47:23 +00:00
hendricks266 843ac9c924 sdlayer: Don't set the window icon from code if we are linked with SDL >= 2.0.5 on Windows, since it will now automatically use the first icon in the exe.
git-svn-id: https://svn.eduke32.com/eduke32@5904 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-20 06:26:20 +00:00
hendricks266 86201254bd sdlayer: Add EDUKE32_SDL_LINKED_PREREQ macro.
git-svn-id: https://svn.eduke32.com/eduke32@5903 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-20 06:26:17 +00:00
hendricks266 1d7c67fd68 sdlayer: Disable Windows thread naming because it interferes with debugging.
git-svn-id: https://svn.eduke32.com/eduke32@5902 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-20 06:26:14 +00:00
hendricks266 8169365820 Bump PSKYOFF_MAX from 4 to 8.
git-svn-id: https://svn.eduke32.com/eduke32@5898 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:56 +00:00
hendricks266 fc1deb5e3d Defs: Add "yoffset" subtoken to "multipsky".
git-svn-id: https://svn.eduke32.com/eduke32@5897 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:53 +00:00
hendricks266 527181f151 Re-enable the use of psky_t's yoffset.
git-svn-id: https://svn.eduke32.com/eduke32@5896 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:50 +00:00
hendricks266 5381e729f8 Add a new aligned mode to alphatabs by defining numalphatabs to be a power of two minus one.
This provides fractionally better correspondence between 0-255 alpha values and blend table IDs.

git-svn-id: https://svn.eduke32.com/eduke32@5890 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:32 +00:00
hendricks266 9906b71023 Rigor-up the handling of 0% and 100% alpha with alphatabs in 8-bit.
git-svn-id: https://svn.eduke32.com/eduke32@5889 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:33:30 +00:00
hendricks266 8a1f1f2ede GL .blend support.
Consult me if you are interested in this feature.

TODO: Polymer.

git-svn-id: https://svn.eduke32.com/eduke32@5888 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 07:55:23 +00:00
hendricks266 2025aab189 In 8-bit, change the precedence of .alpha and .blend.
Previously: Non-zero alpha stacked with cstat translucency in an imitation of Polymost, potentially clobbering .blend if alphatabs are used.
Now: If cstat translucency is active, .alpha is ignored.

git-svn-id: https://svn.eduke32.com/eduke32@5887 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 07:55:18 +00:00
hendricks266 4d08f4d433 Cosmetic changes to some blend/alpha related code.
git-svn-id: https://svn.eduke32.com/eduke32@5886 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 07:55:13 +00:00
terminx b18db99691 Exterminate the smurfs! This fixes the problem where everything in the game was drastically hue shifted on certain hardware configurations, particularly the Raspberry Pi.
git-svn-id: https://svn.eduke32.com/eduke32@5884 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 00:15:14 +00:00
terminx 48a2152660 Potentially speed up drawing md3s with transparency in Polymost
git-svn-id: https://svn.eduke32.com/eduke32@5881 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 00:15:01 +00:00
hendricks266 07d759234d Some float optimizations in the engine.
git-svn-id: https://svn.eduke32.com/eduke32@5877 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-03 02:43:48 +00:00
hendricks266 b768c35175 Ensure the cached float cast variables introduced in r4656 are updated any time the integer versions are.
This fixes the infinite loop when viewing an HUD model at a point when displayrooms is not running, such as the main menu upon initial game load.

git-svn-id: https://svn.eduke32.com/eduke32@5876 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-03 02:43:42 +00:00
terminx 543e7f67c2 Change default unfiltered texture mode to 0 (no mipmaps)
git-svn-id: https://svn.eduke32.com/eduke32@5874 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-18 03:54:21 +00:00
hendricks266 68d6bb8af5 Fix clang Windows build. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5873 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-17 19:58:03 +00:00
hendricks266 12f2c9c198 Fix mistake in r5862. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5872 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-17 19:57:58 +00:00
hendricks266 e99dbb858e Fix undefined behavior: null pointer passed as argument which is declared to never be null
git-svn-id: https://svn.eduke32.com/eduke32@5868 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-16 21:55:39 +00:00
hendricks266 388c3832cd Loop optimizations in screencapture
git-svn-id: https://svn.eduke32.com/eduke32@5867 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-16 21:55:36 +00:00
hendricks266 63030036ba Address warning: variable might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
git-svn-id: https://svn.eduke32.com/eduke32@5866 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-16 21:55:33 +00:00
hendricks266 278eb6ded8 Fix -Wmisleading-indentation warnings in rawinput.c.
git-svn-id: https://svn.eduke32.com/eduke32@5865 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-16 21:55:30 +00:00
hendricks266 1b906d74dd Fix USE_OPENGL=0 build.
git-svn-id: https://svn.eduke32.com/eduke32@5862 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-16 21:55:21 +00:00
terminx e2fd26ca2e Mapster32: block ctrl-x and ctrl-shift-x from working if you have unsaved changes
git-svn-id: https://svn.eduke32.com/eduke32@5859 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-10 05:20:55 +00:00
hendricks266 972c92dc6a Fix ghost tsprite bug introduced in previous commit.
git-svn-id: https://svn.eduke32.com/eduke32@5858 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-09 12:01:30 +00:00
hendricks266 bca7e1a91e Finish what r5484 started but got reverted in r5723. Cstat 1024 now works properly in Polymost without causing any side effects in Classic. It remains unimplemented in Polymer.
git-svn-id: https://svn.eduke32.com/eduke32@5857 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-09 03:12:23 +00:00
hendricks266 b73f2f3e17 Reinstitute the cosmetic cleanups that should have been a separate commit from r5484 and were reverted in r5723.
git-svn-id: https://svn.eduke32.com/eduke32@5856 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-09 03:12:20 +00:00
hendricks266 4a6676dd87 Fix warning: signed and unsigned type in conditional expression [-Wsign-compare]
git-svn-id: https://svn.eduke32.com/eduke32@5852 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-06 02:15:37 +00:00
terminx ad4bb9c25d Fix Polymer breakage
git-svn-id: https://svn.eduke32.com/eduke32@5845 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-02 01:21:10 +00:00
terminx b13ad6bdc8 Fix builds on broken compilers that don't properly support using "z" in the length field of a printf format placeholder.
git-svn-id: https://svn.eduke32.com/eduke32@5844 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-29 19:11:47 +00:00
hendricks266 599e58bfef Satisfy warning: this 'if' clause does not guard... [-Wmisleading-indentation]
DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@5843 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-28 21:26:55 +00:00
hendricks266 78f939a2f9 Fix warning: logical 'and' of equal expressions [-Wlogical-op]
DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@5842 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-28 21:26:51 +00:00