Magnus Norddahl
c7ec489846
Merge remote-tracking branch 'origin/master' into materials
2018-01-23 20:16:32 +01:00
alexey.lysiuk
47b276024e
Fixed compilation warnings reported by MSVC
...
src\p_map.cpp(4857): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning)
src\p_map.cpp(4858): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning)
2018-01-22 12:29:16 +02:00
Christoph Oelckers
76d594f952
- reverted the hard offset for transferred skies.
...
This is not the correct way to apply it.
2018-01-21 19:25:21 +01:00
Christoph Oelckers
09f1859c83
- allow retrieving the length of a string constant.
2018-01-21 18:49:46 +01:00
Christoph Oelckers
6438416adb
- fixed: The culling mode for translucent models must be inverted when rendering a mirror.
2018-01-21 16:29:40 +01:00
Christoph Oelckers
e1d6f6f3b3
- fixed: precise rendering did not work anymore due to a missing reference operator in the setup function for the needed data.
2018-01-21 16:17:49 +01:00
Christoph Oelckers
884db96cbb
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-01-21 10:54:34 +01:00
ZZYZX
ee1a8f71bb
Disable TRACE_PCross and TRACE_Impact on ZScript side
2018-01-21 10:54:23 +01:00
ZZYZX
74b937620e
Added texture detection for walls and 3D floors; renamed some fields to more intuitive names
2018-01-21 10:54:23 +01:00
ZZYZX
a7ff62316d
Exported Trace() interface to ZScript
2018-01-21 10:54:23 +01:00
Marisa Kirisame
15e7d9daba
Gave the user data struct for CheckLineTrace a more unique name to avoid confusion with FLineTraceData
2018-01-21 10:54:02 +01:00
Marisa Kirisame
69e8c9ec6e
A more "general purpose" line trace function. Far from a complete ZScript interface with Trace(), though.
2018-01-21 10:54:02 +01:00
Jan Engelhardt
3f45f938d6
Update LZMA SDK to version 17.01
2018-01-21 10:53:40 +01:00
Neil McPhail
ded0c7805d
Fix failure to write under ~/ in confinement
...
When running in a confined environment (such as a snap) it may not be
possible to write to directories such as ~/.config. By using the $HOME
variable instead of the '~' shortcut, the confined environment can pass
an alternative 'home' directory with write privelges.
I have only changed this for posix/unix and haven't touched code for
MacOS, as I don't know if that behaves differently
2018-01-21 10:52:42 +01:00
Christoph Oelckers
56e2db38fd
- Use FName instead of FString to store arg0str in FMapThing.
...
This is because FMapThing gets memset to 0 and changing that would cause more work than it is worth to keep the string. The only thing it is used for is the color for dynamic lights and those do not need case sensitivity so a name will just do as well, but require less adjustments elsewhere.
2018-01-21 09:10:04 +01:00
Christoph Oelckers
c93d025088
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-01-21 08:57:29 +01:00
Rachael Alexanderson
8b3cc6a617
- remove redundant vm.h include in events.cpp
2018-01-21 01:02:00 -05:00
Magnus Norddahl
0f69778e23
- Add new material shader entries for specular and PBR light modes
2018-01-21 01:53:44 +01:00
Magnus Norddahl
4dd2d789f4
- Rename mTextureEffects to mMaterialShaders to help distinguish between those and effect shaders (mEffectShaders)
...
- Add MaterialShaderIndex enum
2018-01-21 01:19:16 +01:00
Christoph Oelckers
9b40097e48
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-01-20 22:41:41 +01:00
Christoph Oelckers
6aaf5df617
- reworked spot lights to receive all relevant information through the args.
...
As a bonus, arg0str can now be used for all dynamic lights to pass a color in textual form, including X11R6RGB-names.
2018-01-20 22:41:28 +01:00
Jonathan Russell
708d24aba7
- added Screen.getViewWindow function
2018-01-20 21:56:34 +01:00
Christoph Oelckers
dbf0a68b02
Merge commit '67e3106254e987f5acb9534e725d4f5c3eaa82b2'
...
# Conflicts:
# src/doomdata.h
# src/namedef.h
# src/p_udmf.cpp
2018-01-20 19:07:54 +01:00
Rachael Alexanderson
6df936e0a0
- remove A_IsPlayingSound
2018-01-20 19:01:47 +01:00
Marisa Kirisame
a01ca4c3a1
Exported S_IsActorPlayingSomething and S_GetMSLength to ZScript.
...
Added missing vm.h include, moved A_IsPlayingSound to p_actionfunctions.cpp.
- make A_IsPlayingSound ui only
2018-01-20 19:01:47 +01:00
Major Cooke
d5d393aaf2
- Added GetRadiusDamage. Returns the raw calculated explosion damage falloff by distance only.
...
- Split off both explosion damage calculations into P_Get(Old)RadiusDamage functions for ease of maintenance.
2018-01-20 18:45:01 +02:00
Magnus Norddahl
f3c55c01c8
Add material definition to GLDEFS
2018-01-20 16:28:24 +01:00
alexey.lysiuk
c840368446
Fixed compilation warnings reported by GCC/Clang
...
src/s_environment.cpp:908:6: warning: variable 'v' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
src/s_environment.cpp:908:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
src/s_environment.cpp:934:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
2018-01-20 14:59:29 +02:00
Christoph Oelckers
16461e0d59
Merge branch 'reverbedit'
2018-01-20 13:06:26 +01:00
alexey.lysiuk
7a1ec9ab9d
Applied values to latched CVARs in correct order
...
https://forum.zdoom.org/viewtopic.php?t=59159
2018-01-20 13:53:13 +02:00
Christoph Oelckers
2d8e394529
Merge branch 'master' into reverbedit
...
# Conflicts:
# wadsrc/static/zscript/menu/optionmenuitems.txt
2018-01-20 11:44:42 +01:00
Christoph Oelckers
2fddea7bed
Merge branch 'unsafe_context'
2018-01-20 11:21:52 +01:00
alexey.lysiuk
b5006bbee4
Fixed potential compilation error in ACS loader
...
https://forum.zdoom.org/viewtopic.php?t=59164
2018-01-20 10:34:07 +02:00
Christoph Oelckers
2720e36a2c
- marked a few more CCMDs unsafe.
2018-01-20 09:11:28 +01:00
Christoph Oelckers
4cf5977b56
Merge branch 'master' into unsafe_context
2018-01-20 08:53:00 +01:00
Christoph Oelckers
19cf887ad1
- fixed: Dynamic arrays for object pointers need different treatment than arrays for regular pointers, because they require GC::WriteBarrier to be called.
2018-01-19 19:49:42 +01:00
alexey.lysiuk
f629678320
Fixed const correctness for secplane structure
...
https://forum.zdoom.org/viewtopic.php?t=59151
2018-01-18 15:34:56 +02:00
alexey.lysiuk
6d20da8ab5
Fixed nust -> must typos
2018-01-18 11:43:32 +02:00
alexey.lysiuk
56f656516d
Fixed rare crash when menu is closed from Ticker() function
...
https://forum.zdoom.org/viewtopic.php?t=59112
2018-01-16 11:00:48 +02:00
Christoph Oelckers
13c4e58c3d
- simplified IgnoreMIDIVolume.
...
The XP related check had already been deactivated but not removed.
2018-01-14 10:48:26 +01:00
alexey.lysiuk
f28914d1b6
Simplified handling of command line arguments in Cocoa backend
...
Empty arguments are no longer ignored
2018-01-14 11:29:45 +02:00
alexey.lysiuk
09e2326c63
Use dummy uallong() function for all Intel targets
...
64-bit Intel targets built with GCC/Clang were using strict memory alignment version of this function
2018-01-14 10:13:18 +02:00
alexey.lysiuk
72f181be08
Revert "Added partial bounds check for instruction pointer in ACS VM"
...
This reverts commit 83cd53c9b1
.
2018-01-14 10:04:13 +02:00
alexey.lysiuk
9b52c18ef6
Improved layout of FMultiPatchTexture::TexPart structure
...
Removed "gaps" between members (for 64-bit targets) and initialized them in place
2018-01-13 12:44:23 +02:00
alexey.lysiuk
d95ac93376
Fixed crash when resolving multipatches with missing textures
...
https://forum.zdoom.org/viewtopic.php?t=59088
2018-01-13 12:41:19 +02:00
alexey.lysiuk
337bbfc88c
Custom submenus are no longer removed from altered protected menu
...
https://forum.zdoom.org/viewtopic.php?t=59081
2018-01-12 10:51:14 +02:00
Rachael Alexanderson
ee9736fbb3
- print out FriendlySeeBlocks on 'info' ccmd
...
- not setting FriendlySeeBlocks on UDMF now causes the actor to use its ZScript default
2018-01-09 15:48:19 -05:00
Rachael Alexanderson
9c189e5d4b
- expose a monster's 'friendlyseeblocks' to UDMF
2018-01-09 15:30:45 -05:00
Rachael Alexanderson
68cd0fad76
- fixed crash when entering 'finishgame' in the console outside of a level.
2018-01-09 20:24:25 +01:00
Rachael Alexanderson
36b6253c3d
Merge branch 'FriendlySeeBlocks' into zmd5
2018-01-09 13:55:09 -05:00
Rachael Alexanderson
7416f42b47
- add 'FriendlySeeBlocks' actor property that allows a modder to expand the maximum radius that a friendly monster can see enemies.
2018-01-09 12:34:12 -05:00
Christoph Oelckers
8667987cd6
- DWaitingCommand needs to serialize its unsafe state.
2018-01-08 18:13:02 +01:00
alexey.lysiuk
6370594e17
Fixed crash on finishgame CCMD before starting new game
...
https://forum.zdoom.org/viewtopic.php?t=59045
2018-01-08 17:16:03 +02:00
alexey.lysiuk
b008426ed7
Added propagation of unsafe execution context to waiting command
...
Thanks Edward-san for pointing this out
2018-01-08 10:41:31 +02:00
Jameson Ernst
e8a7f00b9b
Adjust FNF enum to fix FILLZEROS
2018-01-07 23:44:03 +01:00
alexey.lysiuk
059e40e2d5
Prohibited setting of non-mod CVARs from unsafe alias
2018-01-07 15:04:50 +02:00
alexey.lysiuk
f25a5ea2bc
Marked a few commands as unsafe
...
This process of finding unsafe commands is not complete!
2018-01-07 15:03:49 +02:00
alexey.lysiuk
6d37a67027
Added unsafe execution context for console commands
...
Some console commands are insecure because they access user's file system
Such commands cannot be executed from MENUDEF and KEYCONF aliases
2018-01-07 15:02:22 +02:00
Magnus Norddahl
a23e5f49f6
- Add "fuzz software" to GL that renders fuzz like the scaled fuzz mode in the software renderer
2018-01-07 02:29:55 +01:00
Rachael Alexanderson
9fd78e90ad
- export 'GetChecksum' as part of FLevelLocals in ZScript
2018-01-06 19:59:49 -05:00
Magnus Norddahl
56db2b02cc
- Fix psprite not appearing when invulnerability effect is active with bloom turned on
2018-01-06 17:21:02 +01:00
alexey.lysiuk
83cd53c9b1
Added partial bounds check for instruction pointer in ACS VM
...
This change adds verification of instruction pointer for indirect usages only, i.e. via NEXT...() macros
2018-01-06 13:26:51 +02:00
alexey.lysiuk
44f01e1dc6
Added bounds check for local variables in ACS VM
2018-01-06 12:13:15 +02:00
Magnus Norddahl
f88d9a02df
Remove bloom effect on psprites
2018-01-06 05:11:12 +01:00
alexey.lysiuk
df0cddb35d
Do not output empty conversation replies to console
...
https://forum.zdoom.org/viewtopic.php?t=58992
2018-01-05 16:26:31 +02:00
Jonathan Russell
67e3106254
- add the default spotlight apertures in FMapThing
2018-01-04 23:31:10 +00:00
Jonathan Russell
e754fe04ef
- removed the 0 check on the UDMF property, so 0 can be a valid aperture
2018-01-04 23:22:45 +00:00
Jonathan Russell
254501d3e8
- fixing last commit, which didn't seem to work correctly
2018-01-04 23:09:48 +00:00
Jonathan Russell
7f7c720883
- added UDMF properties for spotlights (args have all been used up for dynlights)
2018-01-04 22:41:57 +00:00
Magnus Norddahl
79440d7014
- Fix sprite spot light calculation
2018-01-04 19:42:52 +01:00
Magnus Norddahl
bae3620540
- Added spot light support to gl_SetDynSpriteLight
2018-01-04 19:27:03 +01:00
Magnus Norddahl
f398286162
- Fix wrong spot direction
2018-01-04 19:09:12 +01:00
Magnus Norddahl
5f36b86013
- Add dynamic spot lights
2018-01-04 17:58:11 +01:00
alexey.lysiuk
4b044e30d7
- ACS stack checking (proxy commit by Rachael)
2018-01-03 23:35:57 -05:00
Rachael Alexanderson
6aa724a9b4
- add 'gl_riskymodernpath' for computers that worked before the GL >= 3.3 modern path enforcement, since some did, but they seemed to be the exception rather than the rule.
2018-01-03 21:46:04 -05:00
alexey.lysiuk
549a9d3cf0
Extended Actor.CheckMove() with optional position information
...
https://forum.zdoom.org/viewtopic.php?t=58964
2018-01-03 10:48:10 +02:00
Major Cooke
c3c1e76e8a
Added vector diff functions to ZScript LevelLocals class
...
Vec2Diff() and Vec3Diff() work like Actor’s Vec2To() and Vec3To() but use arbitrary points
2018-01-02 14:18:59 +02:00
alexey.lysiuk
c4648a2b1c
Added CheckMove() function to ZScript Actor class
...
https://forum.zdoom.org/viewtopic.php?t=58964
2018-01-02 13:04:28 +02:00
Rachael Alexanderson
d8aa53f5b1
- whitelisted openmenu
2018-01-01 14:51:32 -05:00
alexey.lysiuk
be8147406e
Fixed initialization of BlockThingsIterator objects
...
https://forum.zdoom.org/viewtopic.php?t=58945
2018-01-01 11:11:21 +02:00
alexey.lysiuk
2c4eae7487
Applied vertical offset to transferred sky in OpenGL renderer
...
https://forum.zdoom.org/viewtopic.php?t=58934
2017-12-31 21:29:27 +02:00
alexey.lysiuk
8f70d70dd6
Generalized maximum amount for give cheat
...
https://forum.zdoom.org/viewtopic.php?t=58930
2017-12-31 15:25:51 +02:00
alexey.lysiuk
294bf6ed53
Simplified base class checks in AActor::GiveInventory()
2017-12-31 15:23:54 +02:00
alexey.lysiuk
de4fc97ac6
Fixed ammo limit for give cheat
...
https://forum.zdoom.org/viewtopic.php?t=58930
2017-12-31 13:30:30 +02:00
alexey.lysiuk
40fd816d54
Improved compatibility of blocking lines handling
...
Only the first blocking line changes contact state during line iteration
This reverts 3b818171d5
https://forum.zdoom.org/viewtopic.php?t=57870
2017-12-31 11:34:12 +02:00
Rachael Alexanderson
a5ded11994
- load translator from gameinfo instead of Doom for UMAPINFO
2017-12-30 16:36:29 -05:00
Rachael Alexanderson
340f1fce30
- load Doom translations when parsing UMAPINFO in order to activate the correct boss specials
...
- one typo (only on a comment) change
2017-12-30 16:21:02 -05:00
alexey.lysiuk
8f7ca00d19
Added optional angles to player's coordinates display
...
Set hud_showangles CVAR to display pitch, yaw, roll below player's coordinates
2017-12-30 12:10:39 +02:00
alexey.lysiuk
a3d1efc8d6
Better angle selection for rotated automap sprites
...
https://forum.zdoom.org/viewtopic.php?t=58348
2017-12-30 12:08:32 +02:00
alexey.lysiuk
33213f5d5d
Fixed rendering of wrapped midtex with sky ceiling
...
https://forum.zdoom.org/viewtopic.php?t=58311
2017-12-29 14:37:09 +02:00
alexey.lysiuk
a670e79b8a
Applied texture offsets and scales on animated doors
...
https://forum.zdoom.org/viewtopic.php?t=58892
2017-12-29 11:47:30 +02:00
alexey.lysiuk
996bddd602
Exposed pixel stretch to ZScript as member variable instead of function
...
https://forum.zdoom.org/viewtopic.php?t=58539
2017-12-29 09:42:03 +02:00
alexey.lysiuk
25d53ecd2c
Enabled position independent executable for generic GCC/Clang
...
This affects mostly Linux (and probably MinGW) as default toolchains for Windows and macOS have the corresponding option turned on by default
2017-12-29 09:39:01 +02:00
Magnus Norddahl
b8415199c9
Fix culling bug
2017-12-28 11:43:52 -05:00
Rachael Alexanderson
a441cea350
- interpolate particles
2017-12-28 11:36:36 -05:00
alexey.lysiuk
8ca3427850
Fixed applying of Doom 64 lighting to horizon portals
...
https://forum.zdoom.org/viewtopic.php?t=58878
2017-12-28 18:32:26 +02:00
Rachael Alexanderson
5c602b1ec0
- fixed: FSkillInfo operator "=" did not set PlayerRespawn value
2017-12-28 01:41:56 -05:00
Rachael Alexanderson
45531090a7
- add 'playerrespawn' skill flag to allow gameplay mods to retroactively enable player respawns in single player on all maps
2017-12-28 00:53:30 -05:00
Major Cooke
10465c1d27
- Fade cancelling should only always be active for A_SetBlend fades, not always for everything else (such as ACS fades).
2017-12-27 23:34:44 -05:00
Major Cooke
fa0082aef6
Added ability to perform reverse fades with A_SetBlend
2017-12-27 20:51:13 -05:00
Christopher Bruns
a3399c1af2
Fix: Bind the default framebuffer before testing whether hardware stereo 3D is supported. This allows Nvidia 3D vision glasses to function correctly when gl_light_shadowmap is ON.
...
Doc: Add "requires restart" to "enable quad stereo" option menu label, to help folks trying to setup 3D.
2017-12-27 17:50:53 -05:00
Major Cooke
1e7df5505e
Added GetPixelStretch to LevelLocals struct.
2017-12-27 17:50:39 -05:00
alexey.lysiuk
2eb51e5f79
Disabled modifier keys processing in UI by Cocoa backend
...
Modifier keys no longer trigger bound actions in menu/console/chat
2017-12-25 18:14:56 +02:00
Rachael Alexanderson
205c64d4b1
- prevent level from exiting if no deathmatch starts are available in multiplayer
2017-12-24 20:48:51 -05:00
Rachael Alexanderson
000037dbf6
- implemented 'i_soundinbackground' to continue playing sounds and music while in the background.
...
- OpenGL rendering continues now even when losing focus while in windowed mode.
2017-12-24 18:01:45 -05:00
Rachael Alexanderson
d10304ea4e
Merge commit 'refs/pull/355/head' of https://github.com/coelckers/gzdoom
2017-12-24 07:48:11 -05:00
alexey.lysiuk
a11e9ca4dc
Apply compatibility flags to all map format
...
UDMF maps were no affected by settings in compatibility.txt
2017-12-24 10:33:29 +02:00
alexey.lysiuk
bfaa09c429
Fixed crash after restart CCMD
2017-12-23 15:48:28 +02:00
alexey.lysiuk
d50ba4954a
Fixed potential crash when calling undefined function in ZScript
...
The following code which uses explicit class specifier led to a crash:
class C
{
void F()
{
Object.Undefined();
}
}
2017-12-23 15:27:32 +02:00
Rachael Alexanderson
b9a2398935
- added 'undocolorpic' to c_dispatch whitelist
2017-12-21 18:00:13 -05:00
Rachael Alexanderson
0e2aee7d5e
- whitelist reset2saved in menudef
2017-12-20 03:21:50 -05:00
alexey.lysiuk
90c734a39f
Fixed VM abort when drawing from ZScript happens during 0 game tic
...
https://forum.zdoom.org/viewtopic.php?t=58523
https://forum.zdoom.org/viewtopic.php?t=58780
2017-12-19 18:07:29 +02:00
alexey.lysiuk
8c60c3c532
Added bounds checks for color translation indices
...
ACS scripts could pass arbitrary values as palette indices leading to undefined behavior
2017-12-17 15:13:41 +02:00
alexey.lysiuk
6db8e71b14
Fixed inconsistent color remapping via translation ranges
...
https://forum.zdoom.org/viewtopic.php?t=58537
2017-12-17 15:13:41 +02:00
Major Cooke
ceffe1ba5f
Consistent style.
2017-12-16 12:17:55 -05:00
Major Cooke
0d841ab4df
- Added DMG_NO_PAIN for DamageMobj.
2017-12-16 12:17:55 -05:00
alexey.lysiuk
0afc09678f
Fixed bright sprites in sectors with Doom 64 lighting
...
https://forum.zdoom.org/viewtopic.php?t=58703
2017-12-16 17:37:03 +02:00
alexey.lysiuk
c387574c02
Stop demo recording after ending game with menu_endgame CCMD
...
https://forum.zdoom.org/viewtopic.php?t=58735
2017-12-15 12:34:56 +02:00
Rachael Alexanderson
dee5d064e9
- revise last script a bit: allow certain cheats/scripts/events to be called from the menu.
2017-12-14 16:39:33 -05:00
Rachael Alexanderson
f77ba14948
- use a whitelist for DoCommand zscript command
2017-12-14 15:55:45 -05:00
alexey.lysiuk
de12902d77
Increased limit for automap empty space margin to 90%
...
https://forum.zdoom.org/viewtopic.php?t=58653
2017-12-14 16:18:27 +02:00
Christoph Oelckers
6b42036eb6
- fixed: AActor::UnlinkFromWorld must also destroy all portal link nodes for the calling actor.
2017-12-10 21:26:52 +01:00
alexey.lysiuk
724c997695
Fixed error check when saving GL nodes
2017-12-10 15:10:32 +02:00
alexey.lysiuk
a89bc23789
Fixed crash when loading saved game with missing ACS module
2017-12-10 13:24:16 +02:00
Rachael Alexanderson
1559d74c2c
- repaired the video scaling code
2017-12-10 04:22:28 -05:00
alexey.lysiuk
ebb926e7b0
Added free space margin aka safe frame for automap
...
am_freespacemargin CVAR and corresponding menu options can set empty space margin for automap in percentage of zoomed out size
https://forum.zdoom.org/viewtopic.php?t=58653
2017-12-09 17:38:34 +02:00
Rachael Alexanderson
eb5da3e641
- fixed: if the level is started before the first timer call, pass an earlier timestamp to screen->FrameTime
2017-12-09 06:09:48 -05:00
alexey.lysiuk
0bd9437a96
Fixed loading of external DeHackEd patches
...
https://forum.zdoom.org/viewtopic.php?t=58685
2017-12-09 11:37:25 +02:00
Rachael Alexanderson
a3a350e6e8
- fixed: make level.ShaderStartTime use the same values as what screen->FrameTime normally gets.
2017-12-07 16:31:27 -05:00
Rachael Alexanderson
938cd3cabe
- implemented win_borderless for fake fullscreen in Windows
2017-12-07 06:32:51 -05:00
Rachael Alexanderson
a29d9e157c
- fixed: screen->FrameTime should use an adjusted frame start time
2017-12-07 03:01:57 -05:00
Rachael Alexanderson
29d2d8b3f8
- changed ttl in particle_t from short to int32_t for longer lifespan.
2017-12-07 01:54:30 -05:00
alexey.lysiuk
5162e7162e
Fixed overbright screenshots with hardware gamma off
...
When render buffers are used to apply gamma/brightness/contrast screenshots should not use PNG gamma correction
2017-12-06 11:24:10 +02:00
Rachael Alexanderson
505c99b0a8
- fixed: doublize more internal structures, even if they still get converted to float later
2017-12-04 17:39:57 -05:00
Christoph Oelckers
6403f64a93
- use documents path to store reverbs.
2017-12-03 21:06:27 +01:00
Christoph Oelckers
4c799af293
Merge branch 'master' into reverbedit
2017-12-03 21:04:14 +01:00
Christoph Oelckers
a945418ba6
- added M_GetDocumentsPath function.
2017-12-03 21:03:44 +01:00
Christoph Oelckers
cea89ba3ae
- fix backslashes in MD3 skin names.
2017-12-03 20:03:33 +01:00
Christoph Oelckers
d5445d7953
- reverb editor complete except for localization and saving to a proper place.
2017-12-03 19:56:03 +01:00
Rachael Alexanderson
0fa74220c9
- fixed: doublize sky float, in order to make it more smooth
2017-12-03 12:39:24 -05:00
Christoph Oelckers
5e1100096e
- work on reverb save menu.
2017-12-03 17:04:10 +01:00
alexey.lysiuk
31b0fdc9fe
Fixed directory creation for POSIX targets
...
Warning was reported by GCC 7 only:
cmdlib.cpp:550:13: warning: ‘info.stat::st_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2017-12-03 14:57:35 +02:00
alexey.lysiuk
5f50d60eff
Restored handling of tmpfileplus() keep argument for POSIX targets
2017-12-03 14:57:35 +02:00
alexey.lysiuk
31d1018b9a
Fixed compilation warnings reported by GCC/Clang
...
b_game.cpp:537:27: warning: more '%' conversions than data arguments [-Wformat]
g_game.cpp:2982:40: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'long' [-Wsign-compare]
2017-12-03 14:57:34 +02:00
alexey.lysiuk
f25c7ef2d5
Unified implementation of ’directory as resource file' for POSIX targets
2017-12-03 14:57:34 +02:00
Christoph Oelckers
7e45535669
Merge branch 'master' into reverbedit
2017-12-03 12:46:08 +01:00
alexey.lysiuk
8129afdd1f
Fixed compilation of non-Windows targets
...
These are quick hacks to be improved later
2017-12-03 10:11:54 +02:00
Magnus Norddahl
52be9895b7
- Disable softpoly models
2017-12-03 00:23:28 +01:00
Christoph Oelckers
cc54db6e6d
- let the 3 relevant text functions handle UTF-8 strings
...
These functions are: DCanvas::DrawTextCommon, V_BreakLines and FFont::StringWidth.
This will allow strings from UTF-8 encoded assets to display properly, but also handle the OpenAL device name on international systems, as this will be returned as an UTF-8 string.
Due to backwards compatibility needs the decoding function is rather lax to allow both UTF-8 and ISO 8859-1 to pass through correctly - and this also implies that it will allow mixed encodings which may happen if strings from different sources get concatenated.
2017-12-02 21:21:57 +01:00
Christoph Oelckers
7cbcbe66c0
- sanitization of temporary file stuff for Timidity++.
...
* do not use the global temp directory. Instead create one in the AppData folder.
* removed lots of unneeded code from tmpfileplus.
* use C++ strings in there.
2017-12-02 17:33:43 +01:00
Christoph Oelckers
f6f17fbfb4
- give tmpfileplus its own RNG.
...
This should not interfere with the global one which can be explicitly seeded.
It also seems a bit pointless to constantly re-seed the RNG for something this inconsequential.
2017-12-02 17:05:39 +01:00
Christoph Oelckers
e78503b770
- removed some debug stuff from tmpfileplus.
2017-12-02 16:54:24 +01:00
Christoph Oelckers
4ca3acb0e3
- made tmpfileplus a .cpp file so that it can access ZDoom's own utility code.
2017-12-02 16:51:53 +01:00
Christoph Oelckers
8627a48b34
- consolidation of 'stat' calls.
...
Since this is a non-standard function it's better kept to as few places as possible, so now DirEntryExists returns an additional flag to say what type an entry is and is being used nearly everywhere where stat was used, excluding a few low level parts in the POSIX code.
2017-12-02 16:07:09 +01:00
Christoph Oelckers
1afc3b48a1
- removed Q_filelength which is no longer being used.
2017-12-02 14:27:49 +01:00
Christoph Oelckers
7d0759e2fa
- handled all other uses of fopen that could reasonably converted to FileReader or FileWriter.
2017-12-02 14:24:28 +01:00
Christoph Oelckers
4003e7ca11
- use FileReader for savegame loading in the menu.
...
- simplify the check for existing files here, since a function for doing just that already existed.
2017-12-02 14:10:42 +01:00
Christoph Oelckers
2ba029ec8d
- fixed potential memory leak in M_VerifyPNG.
...
If the 'takereader' parameter is true, the function must delete the reader if it fails before creating the PNGHandle.
2017-12-02 14:02:51 +01:00
Christoph Oelckers
690e7d8a84
- got rid of M_WriteFile as well for the same reasons as M_ReadFile.
2017-12-02 13:18:20 +01:00
Christoph Oelckers
838e52001c
- got rid of M_ReadFile(Malloc) which werew each used only once in the entire code. These were still using the low level POSIX-style file interface which shouldn't really be used anymore.
...
- let FScanner::OpenFile return an error instead of throwing an exception. The exception was never used anyway aside from being caught right away to be ignored.
2017-12-02 13:09:59 +01:00
Christoph Oelckers
e15b23f132
- use FileWriter for writing zip files (i.e. savegames.)
2017-12-02 12:46:25 +01:00
Christoph Oelckers
14af7818b8
- use FileReader for all operations on external lumps.
2017-12-02 12:38:38 +01:00
Christoph Oelckers
8d26760671
- use FileWriter for 'writemidi' CCMD.
2017-12-02 12:33:58 +01:00
Christoph Oelckers
1af42b3d50
- use FileWriter for the OPL dumper.
2017-12-02 12:31:21 +01:00
Christoph Oelckers
ebf5c5763e
- removed the unused bitmap loading and saving features from hqnx_asm/hqnx_asm_Image.
2017-12-02 12:15:26 +01:00
Christoph Oelckers
623f35073c
- use FileReader consistently for loading cached nodes.
2017-12-02 12:08:28 +01:00
Christoph Oelckers
37dc3211f7
- use FileReader for reading the play list.
2017-12-02 12:02:36 +01:00
Christoph Oelckers
ab58e4acb0
- use FileWriter for the AST dump.
2017-12-02 12:01:55 +01:00
Christoph Oelckers
5e7dfa7cce
- use FileWriter for the Timidity MIDI dumper
2017-12-02 12:01:19 +01:00
Christoph Oelckers
e8735e2782
- use FileWriter to save the statistics file.
2017-12-02 11:59:31 +01:00
Christoph Oelckers
20b8c1ef70
- moved buildtexture.cpp from using stdio-based file IO to FileReader.
2017-12-02 11:57:32 +01:00
Christoph Oelckers
e1edb46bbb
- - let FWadLump use the newly added fdopen function.
2017-12-02 11:56:26 +01:00
Christoph Oelckers
9cc8bab102
- only have one fopen call in the entire FileReader hierarchy
...
This is for an eventual implementation of UTF-8 handling. On Windows this will require replacement of fopen with _wfopen so let's try to keep the number of fopen calls low.
2017-12-02 11:55:50 +01:00
Christoph Oelckers
cbd2fd34a0
- added seeking capabilities to FileWriter class.
2017-12-02 11:51:37 +01:00
alexey.lysiuk
0d05b41f22
Fixed incomplete ACS string pool state after loading of saved game
...
https://forum.zdoom.org/viewtopic.php?t=58571
2017-12-02 11:51:52 +02:00
Magnus Norddahl
a8b79a28c8
- Disable model rendering in the software renderer
2017-11-29 22:18:21 +01:00
Rachael Alexanderson
6c4f6f94f4
- fixed: prevent i_timescale from freezing the game if set to too low a value
2017-11-29 08:41:09 -05:00
Rachael Alexanderson
12a44f5bc9
- prevent nanosecond timer from ever casting into a double
2017-11-29 07:43:17 -05:00
Magnus Norddahl
8cad912db1
- Add r_model_distance_cull to control when models turn into sprites
2017-11-29 01:09:26 +01:00
Magnus Norddahl
b621dccb9c
- Improve weapon hud model in the software renderer
2017-11-29 00:33:37 +01:00
Magnus Norddahl
f9fb4a0a17
- Cull back facing triangles for the span drawers
2017-11-29 00:12:15 +01:00
Magnus Norddahl
fae514923a
- Move depth testing out of span drawers
2017-11-28 23:08:28 +01:00
Magnus Norddahl
01fd404133
- Fix palette drawer crash
2017-11-28 22:03:51 +01:00
Magnus Norddahl
e0defb060d
- Add a slightly faster truecolor model drawer
2017-11-28 21:38:02 +01:00
Magnus Norddahl
d43ac8b9ae
- Add model rendering to the software renderer
2017-11-27 23:47:26 +01:00
Christoph Oelckers
a069949482
- connected reverb menu with its backing data
...
- added an entry to the main options menu to open the reverb editor.
2017-11-26 20:11:14 +01:00
Christoph Oelckers
57058ef727
- removed all remains of the old EAX editor.
2017-11-26 15:23:07 +01:00
Christoph Oelckers
1ed1b42c21
Safety commit.
2017-11-26 14:13:56 +01:00
Christoph Oelckers
78184ad6b5
- more work on reverb menu.
2017-11-26 10:16:21 +01:00
alexey.lysiuk
0667f2ec55
Fixed string format issues reported by GCC/Clang
...
d_net.cpp:2874:25: warning: format specifies type 'int' but the argument has type 'unsigned long long' [-Wformat]
gl/utility/gl_clock.cpp:240:38: warning: format specifies type 'int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
v_video.cpp:883:71: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
v_video.cpp:883:80: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
2017-11-26 09:59:28 +02:00
Christoph Oelckers
3ae5f8c09f
- initial work on a reverb editor based on the menu system.
...
This is to get rid of some ugly Windows code and make this platform independent.
2017-11-25 22:03:18 +01:00
alexey.lysiuk
eeba7a7cdf
Fixed tics to seconds conversion
...
Correct time values are now displayed in HUD
2017-11-25 16:32:53 +02:00
Christoph Oelckers
e43a9aa5b5
- don't let models.cpp include gl_system.h.
2017-11-25 13:56:17 +01:00
Christoph Oelckers
836970f012
- moved the matrix code out of 'gl' because the model code also needs it.
2017-11-25 13:51:09 +01:00
Magnus Norddahl
637a9dff9b
- Rename voxels.cpp to models_voxel.cpp to avoid having two source files with the same name (confuses debuggers and some build tools)
2017-11-25 13:22:59 +01:00
Magnus Norddahl
7bb92812b8
- Move models into r_data
2017-11-25 13:19:00 +01:00
Magnus Norddahl
679f42db78
- Remove model GL dependencies except for the matrix classes
2017-11-25 13:00:44 +01:00
Magnus Norddahl
56477c8f89
- Fix 'Requested invalid render buffer sizes' when executing the reverbedit command from fullscreen
2017-11-25 12:20:00 +01:00
Magnus Norddahl
b25f191e85
- Move shared model code out of the GL renderer
2017-11-25 12:11:57 +01:00
Christoph Oelckers
430ed532ef
Merge branch 'master' of https://github.com/coelckers/gzdoom
2017-11-25 11:37:46 +01:00
Christoph Oelckers
87816f811f
- removed windows.h include from a few files which do not need it anymore.
2017-11-25 10:58:33 +01:00
alexey.lysiuk
074a8e4895
Fixed issue with endless waiting for next tic
...
https://forum.zdoom.org/viewtopic.php?t=58426&p=1028622#p1028547
2017-11-25 11:48:38 +02:00
alexey.lysiuk
0f5ff5a5de
Removed obsolete files after timer code refactoring
2017-11-25 11:48:22 +02:00
Magnus Norddahl
a120a4657e
- Apply viewpoint roll
2017-11-24 22:03:46 +01:00
Rachael Alexanderson
6d43c5cdc6
Merge remote-tracking branch 'origin/friendly_window_title'
2017-11-24 14:41:25 -05:00
Rachael Alexanderson
5e29b1c89c
Merge branch 'newtimercode4'
2017-11-24 14:39:58 -05:00
Rachael Alexanderson
c80c2ba635
- added 100% CPU fix provided by Leonard2: https://forum.zdoom.org/viewtopic.php?p=1028500#p1028500
2017-11-24 14:38:55 -05:00
Christoph Oelckers
ed871c3bf8
Merge remote-tracking branch 'remotes/origin/texman_models'
2017-11-24 19:14:08 +01:00
Rachael Alexanderson
297f00aa4b
- fix model rotation some more
...
- a couple compiler warning fixes
2017-11-23 22:37:07 -05:00
Rachael Alexanderson
5181e3ebb2
- rewound time from 2917 to 2017. At least, at this point, we know ZDoom's future is secure.
2017-11-23 22:04:42 -05:00
Rachael Alexanderson
3842071b23
- implemented i_timescale to control the flow of time.
2017-11-23 21:54:04 -05:00
Rachael Alexanderson
1f00810f40
- re-doubled the model rotation code
2017-11-23 21:27:16 -05:00
Rachael Alexanderson
16e6fbf5bf
- commit fix - todo: need to re-double/floatify the model timers again
2017-11-23 21:12:50 -05:00
Rachael Alexanderson
fd5b8cdbf7
Merge remote-tracking branch 'origin/master' into newtimercode4
...
# Conflicts:
# src/gl/models/gl_models.cpp
2017-11-23 21:08:09 -05:00
Magnus Norddahl
00d7dd0c64
- Implement model rendering in softpoly
2017-11-24 00:39:10 +01:00
Magnus Norddahl
f1e7df542f
- Create model renderer abstraction to share more model drawing between renderers
2017-11-24 00:38:52 +01:00
Christoph Oelckers
734f5104dd
Merge branch 'master' of https://github.com/coelckers/gzdoom
2017-11-22 21:43:01 +01:00
Christoph Oelckers
978fdfb273
- tested and fixed UMAPINFO parser.
...
Although this looks like it's working with the test file I used it still needs some stress testing!
2017-11-22 21:42:48 +01:00
Magnus Norddahl
e7e9d1a942
- Fixed bug introduced by removing a little bit too much from the rect drawers
2017-11-22 19:02:25 +01:00
Magnus Norddahl
9052ee6bc8
- Added scaled fuzz to softpoly pal drawer
2017-11-22 18:54:49 +01:00
Magnus Norddahl
f04fca75f7
- Add scaled fuzz to softpoly sse2 drawer
2017-11-22 18:46:45 +01:00
Magnus Norddahl
4e4f94db2f
- Implement newer scaled fuzz in softpoly's truecolor non-sse drawer
2017-11-22 06:32:55 +01:00
Magnus Norddahl
0ef8105e6b
- Add missing r_draw.cpp in CMakeLists.txt
2017-11-21 18:57:44 +01:00
Rachael Alexanderson
495fc79fe9
- added dpJudas's drawer fix for the upscaled fuzz drawing
2017-11-21 05:26:46 -05:00
Rachael Alexanderson
505da5bf4f
Merge branch 'master' of https://github.com/coelckers/gzdoom into newtimercode4
2017-11-21 05:23:00 -05:00
Rachael Alexanderson
47e9975e90
- fixed a couple of fixes from the previous commit
2017-11-21 05:20:02 -05:00
Rachael Alexanderson
2bc86b52c8
- fixed a few of the more obvious logic errors
2017-11-21 04:06:24 -05:00
Magnus Norddahl
5532266b14
- Fix softpoly sprite positioning bug
2017-11-20 22:43:44 +01:00
Christoph Oelckers
6389b6b914
- UMAPINFO parser, including some convenience additions to FScanner.
...
Not tested yet!
2017-11-19 23:04:15 +01:00
alexey.lysiuk
cf9a364f71
textures for models
2017-11-19 18:02:14 +02:00
Christoph Oelckers
f0dc619b5b
- fixed bad use of FScanner::GetNumber and GetFloat in code inherited from ZDoomGL.
...
This could lead to bad error messages if some malformed definitions were used.
2017-11-19 15:30:45 +01:00
Rachael Alexanderson
de19efa79d
- trying again: fix shader targets being case sensitive
2017-11-19 04:48:30 -05:00
Rachael Alexanderson
351de94311
- fixed: Accidentally committed in-progress work... again
...
Partial Revert "- fixed: Made shader targets not case sensitive"
This reverts commit 2c24d2e047
.
2017-11-19 04:46:52 -05:00
Rachael Alexanderson
2c24d2e047
- fixed: Made shader targets not case sensitive
2017-11-19 04:41:07 -05:00
Rachael Alexanderson
f1405f68a7
Merge remote-tracking branch 'origin/master' into friendly_window_title
2017-11-18 14:08:33 -05:00
alexey.lysiuk
c2b4efbea0
Fixed applying of brightmaps to overridden textures
...
https://forum.zdoom.org/viewtopic.php?t=58444
2017-11-18 17:07:42 +02:00
raa-eruanna
28d47d463f
- fix linux compile
...
# Conflicts:
# src/posix/sdl/sdlvideo.cpp
2017-11-18 08:20:58 -05:00
alexey.lysiuk
35bb9ba9d3
Implemented setting of window title in Cocoa backend
...
# Conflicts:
# src/posix/cocoa/i_video.mm
2017-11-18 08:19:15 -05:00
Rachael Alexanderson
c3c637a0cc
- set i_friendlywindowtitle to true by default
2017-11-18 08:17:18 -05:00
alexey.lysiuk
80b47cafb4
Fixed detection of the first entry from internal IWADINFO
...
https://forum.zdoom.org/viewtopic.php?t=58333
2017-11-18 14:37:12 +02:00
Rachael Alexanderson
e867d75712
Merge remote-tracking branch 'origin/master' into newtimercode4
2017-11-15 22:33:27 -05:00
Rachael Alexanderson
e418663a26
- fixed: Reverted an accident in a previous commit where I_StartTic() was moved inappropriately. The new location fixed a mouse stutter, however, it causes net desyncs so it cannot be used here.
2017-11-15 22:20:55 -05:00
Rachael Alexanderson
909daadd75
- update more millisecond-storing data structures to u/int64_t to fix possible rollover bugs
2017-11-15 20:33:08 -05:00
Christoph Oelckers
16fa0cba21
- fixed comparison.
...
The timer reset must also occur when the values are equal, meaning they got set during the same millisecond.
2017-11-15 18:02:41 +01:00
Rachael Alexanderson
ab32cb4c88
- track level start time for the shader system, reset the shaders.
2017-11-15 11:06:21 -05:00
Rachael Alexanderson
d2bc24737b
- put in timer resets for the shader system, so that they can continue being passed as floats
2017-11-14 22:46:28 -05:00
Rachael Alexanderson
763222b571
- fixed: high uptime was causing overloads in uint32_t and float structures (float losing loss of precision) - this caused any computer online for more than a few days to experience jankiness with internal animations such as rotations and shader timers. Unfortunately, this sounds the death knell for 32-bit platforms, since uint64_t is now required in time-critical structures, which will hurt performance tremendeously, but 64-bit systems will be unaffected.
2017-11-14 16:15:25 -05:00
Christoph Oelckers
5935e14c09
- exported P_Thing_Warp to ZScript.
2017-11-13 21:00:17 +01:00
Christoph Oelckers
0323f54384
- rename I_FPSTime function.
...
- now that the frame buffer stores its render time, the 'ms' return from I_GetTimeFrac is not needed anymore, we may just as well use the globally stored value instead.
The only feature this value was ever used for was texture warping.
2017-11-13 00:54:32 +01:00
Christoph Oelckers
96e9eadd97
- removed I_MSTime entirely after checking how the wipe code actually works.
...
Since this calls I_WaitVBL, which resets the frame time, it was essentially just like calling a real-time timer anyway and nothing in it required a specific 0-timepoint.
The same applies to the ZScript interface. All it needs is a millisecond-precise timer with no semantics attached.
2017-11-13 00:38:04 +01:00
Christoph Oelckers
2c65f08011
- more timer cleanup
...
* store the frame time in the current screen buffer from where all render code can access it.
* replace some uses of I_MSTime with I_FPSTime, because they should not use a per-frame timer. The only one left is the wipe code but even this doesn't look like it needs either a per-frame timer or a timer counting from the start of the playsim.
2017-11-13 00:28:43 +01:00
Christoph Oelckers
e94109f1c3
- Inside the renderer, use only the time value being passed to RenderView.
...
The voxel rotation code of the software renderer and R_SetupFrame still called I_FPSTime directly.
2017-11-12 23:53:46 +01:00
Christoph Oelckers
f54475b1f1
- I_FPSTime may not return the time at frame start.
...
This is used for real-time profiling and as such needs to return the current time or most of its uses will break.
2017-11-12 23:39:48 +01:00
Christoph Oelckers
93e9c383fa
- get the timer used for animation only once at the very beginning of the frame and pass it on to the renderer to avoid any dependencies on the timer's implementation.
2017-11-12 18:51:11 +01:00
Christoph Oelckers
0289d9ad9f
- the timing compensation which was necessary for millisecond-precise timing is not needed anymore with nanoseconds.
2017-11-12 13:49:53 +01:00
alexey.lysiuk
5d83ee5e89
Exposed String.Remove() function to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=58402
2017-11-12 14:44:21 +02:00
Magnus Norddahl
efa7c3cacf
- Fix typo in I_FPSTimeNS
2017-11-12 13:22:52 +01:00
Magnus Norddahl
e3141a4af3
- Upgrade timer code to use nanosecond accuracy internally
2017-11-12 12:57:19 +01:00
Christoph Oelckers
0db0f2f7b9
- removed redundant POSIX version of I_WaitVBL
2017-11-12 12:12:51 +01:00
Christoph Oelckers
e50b012c87
- fixed: Model rotation should use the time of the current frame's start, not the time of the time of processing the particular actor.
...
Reading the time directly would result in different values for different viewpoints in a scene or for different objects in the same scene which is not how this is supposed to work.
2017-11-12 12:04:11 +01:00
alexey.lysiuk
285834ae5b
Fixed return state of player entered event
...
https://forum.zdoom.org/viewtopic.php?t=58433
2017-11-12 11:03:08 +02:00
Christoph Oelckers
d9808e6d68
- there were still some old definitions left...
2017-11-12 10:02:29 +01:00
Christoph Oelckers
6bd76d6b5a
- fixed compilation in debug mode.
...
- moved timer definitions into their own header/source files. d_main is not the right place for this.
- removed some leftover cruft from the old timer code.
2017-11-12 09:06:40 +01:00
Magnus Norddahl
7d63c3324d
- Fix macOS compile errors
2017-11-12 03:51:37 +01:00
Magnus Norddahl
307d8931d8
- Switch to C++11 steady clock
...
- Move the C++11 implementation to d_main
- Remove the platform specific timer implementations
2017-11-12 03:12:22 +01:00
Magnus Norddahl
090943eaa4
- Fix freeze interpolation bug
2017-11-11 17:28:38 +01:00
Magnus Norddahl
28401cd674
- Rewrite win32 game tick timer backend to use performance counters and only calculate values once per frame
2017-11-11 17:28:20 +01:00
Rachael Alexanderson
cdf0733c8b
- added latching CVARs to CVARINFO
2017-11-11 09:37:41 -05:00
Rachael Alexanderson
5716dfe050
- put limits on A_SoundVolume
2017-11-10 08:21:28 -05:00
alexey.lysiuk
0e706bfecf
Use tmpfileplus() instead of tempnam()
...
Finally get rid of security or deprecated warnings cause by tempnam() function usage
2017-11-07 11:50:07 +02:00
alexey.lysiuk
e6c9ccf3a1
Changed tmpfileplus() to our needs
...
Removed exclusive flag, made it C++ friendly, replaced unlink() with remove()
2017-11-07 11:13:53 +02:00
alexey.lysiuk
e60c6d35c3
Added tmpfileplus 2.0.0
...
https://www.di-mgt.com.au/c_function_to_create_temp_file.html
https://www.di-mgt.com.au/tmpfileplus-2.0.0.zip
2017-11-07 11:13:53 +02:00
Chris Robinson
f353f8b5aa
Improved OpenGL profile selection in SDL backend
...
https://forum.zdoom.org/viewtopic.php?t=56852
2017-11-07 11:05:06 +02:00
Major Cooke
d422392b94
Extended LineAttack() with offsets and new flags
...
Added forward and side offsets for LineAttack() function
Added absolute offset and absolute position flags for LineAttack() function
2017-11-07 11:02:54 +02:00
alexey.lysiuk
4beefb7007
Removed warning for uninitialized variables in ZScript
...
This reverts commit 8104ef5189
2017-11-06 15:38:28 +02:00
Magnus Norddahl
d4ebe51e83
- Place the HUD model correctly in the world so that shader light calculations work
2017-11-05 15:35:03 +01:00
Magnus Norddahl
23e5d81746
- Implement VSMatrix::inverseMatrix
2017-11-05 15:32:42 +01:00
alexey.lysiuk
61ead4f470
Better STL compatibility for array iterator
...
Extended iterator with types and functions required to use array objects in STL algorithms
2017-11-05 15:20:25 +02:00
alexey.lysiuk
274951839a
Removed unused parameter from several functions in FStateDefinitions class
...
src/p_states.cpp:724:54: warning: parameter ‘actor’ set but not used [-Wunused-but-set-parameter]
https://forum.zdoom.org/viewtopic.php?t=58364
2017-11-05 15:20:25 +02:00
Magnus Norddahl
bd08568b90
- Fix wrong math for model/light distance check
2017-11-05 13:28:56 +01:00
Christoph Oelckers
fafc636476
- allow allocating constructor of TArray to also reserve the allocated data and use this to properly handle the precalc arrays for the texture resizer.
2017-11-03 17:27:32 +01:00
alexey.lysiuk
8104ef5189
Added warning for uninitialized variables in ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57868
2017-11-03 16:23:41 +02:00
alexey.lysiuk
dac5777a70
Removed obsolete declarations from codegen.h
2017-11-03 12:44:28 +02:00
alexey.lysiuk
81ea9fb372
Added runtime check for negative array indices in VM
...
https://forum.zdoom.org/viewtopic.php?t=57886
2017-11-02 18:01:13 +02:00
alexey.lysiuk
57de598e48
Added implicit scope for if/else, while and do/while statements in ZScript
...
Scope is added only for variable or constant definition so it will no longer leak to outer scope
https://forum.zdoom.org/viewtopic.php?t=57848
2017-11-02 17:10:54 +02:00
alexey.lysiuk
587f6f0f91
Added wait for debugger feature to Cocoa backend
...
Use -wait_for_debugger command line switch to display message box on startup
It's available in Debug configuration only
2017-11-02 14:49:08 +02:00
alexey.lysiuk
de7d8995d5
Added string representation of 'static const' token
...
No more 'Unknown(-141)' in 'Expecting ...' error message
2017-11-02 14:45:35 +02:00
alexey.lysiuk
62e91b23bd
Extended String.LastIndexOf() with endIndex parameter
...
https://forum.zdoom.org/viewtopic.php?t=57326
2017-11-01 15:24:05 +02:00
raa-eruanna
7d4f8af245
- fixed compile on Linux and (maybe?) Mac
2017-11-01 04:13:10 -04:00
Rachael Alexanderson
d313ef4b61
- de-init DoomStartupInfo on 'restart' ccmd so that the window title always contains the correct game information.
2017-10-31 20:00:58 -04:00
Rachael Alexanderson
d16ad3dcb5
- added I_FriendlyWindowTitle cvar, which takes the current game/mod name and uses it as a default window title.
2017-10-31 19:47:56 -04:00
alexey.lysiuk
415ed57713
Added Wads.CheckNumForFullName() to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57814
2017-10-29 15:11:49 +02:00
alexey.lysiuk
2f45218f70
Added Wads.ReadLump() to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57814
2017-10-29 11:36:22 +02:00
alexey.lysiuk
91fda180de
Added Wads.FindLump() to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57814
2017-10-29 11:36:22 +02:00
alexey.lysiuk
c4865d2bb6
Exposed string split functionality to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=58114
2017-10-28 11:44:12 +03:00
alexey.lysiuk
3b3f2e20cc
Added ability to split FString on tokens
...
https://forum.zdoom.org/viewtopic.php?t=58114
2017-10-28 11:44:12 +03:00
alexey.lysiuk
40a348b1f1
Fixed potential crash in resolving of multiple assignment
...
https://forum.zdoom.org/viewtopic.php?t=58055
https://forum.zdoom.org/viewtopic.php?t=58237
2017-10-27 18:15:24 +03:00
Rachael Alexanderson
2fd5d0da54
- improve speed for ARMv7 processors by specifying hardware float calculations, and tuning it specifically for the Cortex-a7 CPU (for Raspberry Pi 2).
2017-10-25 09:31:55 -04:00
alexey.lysiuk
5f7a06c66e
Fixed non-portable usage of __solaris__ preprocessor definition
...
GCC: this use of "defined" may not be portable [-Wexpansion-to-defined]
Clang: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
2017-10-24 15:32:43 +03:00
alexey.lysiuk
f40a31409d
Added ability to get texture name from script
...
Use TexMan.GetName(TextureID tex) member function
2017-10-24 11:11:33 +03:00
Rachael Alexanderson
66773b6a1a
- added 'classicflight' user cvar which allows players to move forward and backward without pitch when flying
2017-10-23 12:16:02 -04:00
alexey.lysiuk
50d39771c0
Fixed out of bound read in zip file loader
2017-10-23 12:31:39 +03:00
alexey.lysiuk
cb982ec313
Use FString::Back() when possible
...
Changed usages of str[str.Len() - 1] to str.Back()
2017-10-23 11:55:20 +03:00
alexey.lysiuk
d526ddf7ae
Extended FString class with functions to get first and last characters
2017-10-23 11:49:54 +03:00
alexey.lysiuk
3e43572a87
Added move semantics to FString class
2017-10-23 11:48:04 +03:00
alexey.lysiuk
7d97963005
Reduced code duplication in FString class
...
Moved resetting of string data to null value into own function
2017-10-23 11:45:58 +03:00
David Carlier
b871b1898d
OpenBSD build fix.
...
- No timidity user defined parameters supported.
- Shared libraries versioning policy differs on OpenBSD.
2017-10-21 14:49:41 -04:00
alexey.lysiuk
724d711d1f
Fixed a few cases when IWAD was checked by hardcoded index
2017-10-21 11:10:36 +03:00
alexey.lysiuk
13584b9a9d
Fixed applying of compatibility settings for IWADs
...
https://forum.zdoom.org/viewtopic.php?t=58239
2017-10-21 10:47:13 +03:00
Dugan Chen
4f5b459703
Remove SHARE_DIR from FileSearch.Directories for *nix
2017-10-15 07:56:09 -04:00
Rachael Alexanderson
07c3291262
- fixed: removed erroneous 'defaultrespawntime' macro double so that there's only one
2017-10-14 17:44:17 -04:00
Rachael Alexanderson
4fb355d8da
- added 'startuptype' to iwadinfo, allowing to change the game startup screen with custom iwads
2017-10-14 17:41:43 -04:00
Rachael Alexanderson
30c6cf82ca
- added ability to change slider color using mapinfo's gameinfo
2017-10-14 13:05:15 -04:00
Rachael Alexanderson
0ccd388d91
- reverted the texture flip from the previous commit
2017-10-12 12:44:00 -04:00
Rachael Alexanderson
1b6f77a473
- fixed: inverted vertically texture uniforms for custom post-process shaders, and also changed their input format to BGRA to match the standard.
2017-10-12 11:54:56 -04:00
Dugan Chen
2e4ffbb1d1
If *nix, add default gzdoom.pk3 directory t File.Search paths
2017-10-12 10:46:26 -04:00
Leonard2
80701927e8
Fixed: don't interpolate view movements if a key press didn't result in any changes.
2017-10-11 19:01:37 +02:00
Rachael Alexanderson
7d67d5e998
- fixed possible erroneous comparison, also fixed a couple compiler warnings in the process
2017-10-10 07:23:05 -04:00
Rachael Alexanderson
fc0ae896b2
- remove vid_tft and vid_nowidescreen and associated menu option. Their functionality was supersceded and extended by vid_aspect==3 (which has the same effect as setting both to true anyhow), and it was mostly just redundant.
2017-10-10 06:38:07 -04:00
Rachael Alexanderson
69abf095c9
- added vid_cropaspect. This cvar turns vid_aspect into a letterboxing function that will crop the unused sides of the screen away, instead of stretching it. Requires one of the non-legacy OpenGL framebuffers to work.
2017-10-07 20:18:37 -04:00
Rachael Alexanderson
44373b414f
- bump for 3.3pre
2017-10-07 19:36:42 -04:00
alexey.lysiuk
65966badb2
Fixed crash on attempt to register IDs for undefined class
...
https://forum.zdoom.org/viewtopic.php?t=46670&start=16#p1021785
2017-10-07 16:30:49 +03:00
alexey.lysiuk
57ecc4ce30
Removed the last deprecated method in Cocoa backend
...
src/posix/cocoa/i_input.mm:482:36: warning: 'convertScreenToBase:' is deprecated: first deprecated in macOS 10.7 - Use -convertRectFromScreen: instead [-Wdeprecated-declarations]
2017-10-07 15:13:59 +03:00
alexey.lysiuk
7a43fa6ed7
Cocoa window uses OpenGL 2.1 for software renderer
2017-10-07 15:13:41 +03:00
alexey.lysiuk
557958577b
Removed all code needed to support macOS earlier than 10.7 Lion
2017-10-07 15:11:30 +03:00
AntiBlueQuirk
9e07babde5
Fixed flags when demoting interactive portals
...
Interactive portals demoted to visual due to not having a back-sector would not have their interactive flag properly cleared.
2017-10-03 08:15:14 +02:00
AntiBlueQuirk
4884a1f785
Fixed bugs with Line_PortalSetTarget and added more portal geometry warnings
...
- A bug exists where portals that have been deactivated with Line_PortalSetTarget cannot be reactivated, even if given a valid target.
- Another bug exists where portals that were created in an inactive state (using a target line tag of 0) could never be activated. (Even with the above bugfix.)
- Linked portals that have been demoted to teleport portals because they do not have a return portal now emit a warning.
- Portals that are supposed to be traversable, but do not have back-sector now demote to visual portals and emit a warning, because nothing could ever possibly traverse them anyway.
2017-10-03 08:15:14 +02:00
Chris Robinson
bbaec90f61
Fix speed of sound and unit scale
2017-10-01 07:39:26 +02:00
Magnus Norddahl
e71e4b6dc8
- Improved transfer heights support in softpoly
2017-09-30 23:58:11 +02:00
Magnus Norddahl
0ee021a972
- Improve transfer heights support in softpoly
2017-09-29 05:23:17 +02:00
Rachael Alexanderson
3031d48bfb
- added TID to actorlist and similar commands output
2017-09-28 11:34:01 -04:00
alexey.lysiuk
48f9e53580
Added better error message for invalid class/struct member
...
https://forum.zdoom.org/viewtopic.php?t=57959
2017-09-24 10:25:05 +03:00
Magnus Norddahl
cfc1bfd1e2
- Fixed FxPow::Resolve not specifying the ValueType
2017-09-24 01:15:58 +02:00
Magnus Norddahl
d7164ba4e1
- Don't apply dynamic light to fullbright sprites
2017-09-23 16:22:22 +02:00
Magnus Norddahl
5ffd26abeb
- Add dynamic lights to the non-sse true color drawer
2017-09-23 15:51:40 +02:00
Magnus Norddahl
f3ba92f03c
- Add dynamic light to sprites
2017-09-23 14:14:59 +02:00
JimmyZD
abc8e4deac
Added four text colors: ice, fire, sapphire, teal
...
https://forum.zdoom.org/viewtopic.php?t=57942
2017-09-23 11:56:16 +02:00
alexey.lysiuk
f174111128
Fixed read beyond buffer boundary during font color parsing
...
Printing of string that ends with '\c' led to undefined behavior
Example: 'echo \c' in console
2017-09-23 11:57:06 +03:00
Magnus Norddahl
789214200c
- Attenuated lights support
2017-09-23 02:27:39 +02:00
AraHaan
e15a84f062
Changed Fatal Error Dialog title.
...
This is to match all the parts that says GZDoom.
2017-09-22 19:13:08 +02:00
Magnus Norddahl
ca2ef805b8
- Implement the affine part of the dynamic lights in the softpoly TC SSE2 drawer
2017-09-22 00:57:51 +02:00
Magnus Norddahl
94a33229cc
- Remove unused function argument
2017-09-22 00:56:14 +02:00
Magnus Norddahl
dd8a114bb8
- Initial dynamic light support for softpoly
2017-09-21 05:39:16 +02:00
Magnus Norddahl
afdeed305b
- Fix typo
2017-09-21 04:39:40 +02:00
Magnus Norddahl
59ee89b622
- Make the relationship between TriMatrix, TriVertex and ShadedTriVertex more clean
2017-09-21 01:21:21 +02:00
Magnus Norddahl
b6b78176d2
- Add FVector4 and DVector4 to the family of vectors
2017-09-21 00:42:06 +02:00
David Carlier
9f742f8aaa
fixing wrong free calls
2017-09-17 11:34:46 +03:00
alexey.lysiuk
e081a0d810
Fixed crash on attempt to get actor state named 'None'
...
https://forum.zdoom.org/viewtopic.php?t=57885
2017-09-17 11:25:55 +03:00
Rachael Alexanderson
e6b6cb354b
- fixed: playersprite in the classic software renderer was acting oddly with a forced aspect ratio, similar to the bug fixed in ac566f4
2017-09-16 16:09:00 -04:00
alexey.lysiuk
1eda8aba6b
Fixed name comparison in checking of IWADINFO lump
...
https://forum.zdoom.org/viewtopic.php?t=57835
2017-09-16 17:02:08 +03:00
Magnus Norddahl
afab50b489
- Added subdivision coverage testing and an alternative triangle renderer for speed comparison
2017-09-16 15:48:39 +02:00
alexey.lysiuk
52634dbec1
Fixed compilation warning reported by GGC/Clang
...
src/w_wad.cpp:284:20: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
2017-09-16 12:54:09 +03:00
Rachael Alexanderson
72054fb5e2
- implemented pixelratio for the classic software renderer
2017-09-16 05:26:18 -04:00
Rachael Alexanderson
3531f3e285
- Use a FreeDoom sprite for deadguy.bmp - much better than a red circle with an exclamation point on it.
2017-09-16 04:16:14 -04:00
Rachael Alexanderson
ae4dad64f7
- fixed: Do not attempt to look up negative IWAD indices.
2017-09-13 18:23:53 -04:00
Rachael Alexanderson
765646ee1c
- fixed: Changed IWAD_FILENUM to a dynamic lookup.
2017-09-13 04:19:03 -04:00
Rachael Alexanderson
ffa11dec54
- added bounds checker for all calls to vid_scalemode code - apparently it was possible to start gzdoom with vid_scalemode==8 from previous valid values and cause it to crash.
2017-09-13 02:45:37 -04:00
Rachael Alexanderson
f1676c3d75
Merge branch 'archive_split'
2017-09-12 19:27:22 -04:00
Rachael Alexanderson
ac566f4a84
- fixed: PlayerSprite in softpoly was not calculated correctly. Sprite will now not go all sorts of crazy places when you enable alternative scaling or forced aspect modes.
2017-09-12 15:56:35 -04:00
Rachael Alexanderson
8454e09694
- fixed: I was using the wrong check to determine which renderer was in use. Ooops. It now checks for the actual (active) renderer rather than the state of vid_glswfb
2017-09-12 14:32:29 -04:00
Rachael Alexanderson
1e4d7534c4
- remove gl_legacy_mode check in the glswfb
2017-09-12 08:57:27 -04:00
Rachael Alexanderson
79fc219afd
- allow OpenGL 3.0 MESA drivers to use vid_glswfb
2017-09-12 08:18:22 -04:00
Magnus Norddahl
d0fbdd1314
Merge branch 'master' of https://github.com/coelckers/gzdoom
2017-09-12 02:40:29 +02:00
Magnus Norddahl
70220fb4cc
- Slightly improve softpoly opaque pass performance
2017-09-12 02:40:09 +02:00
alexey.lysiuk
f5f7cd9fed
Fixed broken FOV in SetCameraToTexture() ACS function
2017-09-11 12:22:22 +03:00
nashmuhandes
d80f9634e3
Change default shadowmap quality to 512 at dpJudas's advice ( https://forum.zdoom.org/viewtopic.php?p=1016143#p1016143 )
2017-09-10 12:46:55 -04:00
nashmuhandes
3ff1597640
Change minimum shadowmap quality to 128.
2017-09-10 12:46:55 -04:00
Rachael Alexanderson
4b82bb50df
- removed scale resolutions and added vid_scalefactor to replace them.
2017-09-10 12:29:07 -04:00
Magnus Norddahl
0924cc3f0f
- Fix crash when switching levels
2017-09-10 17:11:17 +02:00
Magnus Norddahl
4d671fb618
- Improve softpoly culling performance
2017-09-10 16:29:57 +02:00
Rachael Alexanderson
432afd9edf
- privatized the namespace in r_videoscale.cpp completely
2017-09-10 09:50:49 -04:00
Rachael Alexanderson
86a66cd554
- refactored r_videoscale.cpp to use a table.
...
- reordered vid_scalemode modes to be a little neater, having static modes and scalar modes separate, with a buffer in between so new modes can be added in the future without disrupting the current order.
2017-09-10 09:41:03 -04:00
Chris Robinson
666198dec8
Don't allow Timidity++ pipes less than 20ms
...
This prevents Timidity++ from playing externally, so it now always goes through
the sound system. Aside from the issues relating to controlling playback, that
functionality has been busted for who knows how long anyway since Open() always
tries to create a pipe and sound stream regardless of the calculated size.
2017-09-10 07:25:29 -04:00
Chris Robinson
1b1f8d605f
Add menu entries for selecting the timidity config
2017-09-10 07:25:29 -04:00
Chris Robinson
49df5a7f16
Add a cvar for the timidity++ config file
2017-09-10 07:25:29 -04:00
Chris Robinson
8f8c2ef2ef
Build Timidity++ args separately on non-Windows
...
Rather than building a command line that's going to be manually split into
individual arguments passed to execvp, build the individual arguments directly.
2017-09-10 07:25:29 -04:00
Chris Robinson
5b3fbfde6d
Read all data from the Timidity++ pipe
...
For non-Windows systems, read() may be non-blocking and can return less than
the requested amount if the timidity process hasn't written enough audio yet.
2017-09-10 07:25:29 -04:00
Rachael Alexanderson
67936a2630
- added: m_showinputgrid == '-1' allows for on-screen keyboard to never show, even when using a mouse
2017-09-10 07:04:00 -04:00
Rachael Alexanderson
69b85753f2
Merge remote-tracking branch 'origin/master' into archive_split
2017-09-10 05:57:56 -04:00
Magnus Norddahl
5ab0f34aca
- Don't draw 3d floor walls that have zero height or less
2017-09-10 02:18:07 +02:00
Magnus Norddahl
4706c56690
- Fix portals crashing softpoly
2017-09-10 02:17:18 +02:00
Rachael Alexanderson
76f805062a
- updated icon for linux/unix
2017-09-09 13:18:47 -04:00
Rachael Alexanderson
bcc5830467
- don't call BaseFileSearch inside of d_iwad.cpp since it is supposed to be treated as a private function.
2017-09-09 06:37:08 -04:00
Rachael Alexanderson
9a7f727aa4
- fixed: zd_extra.pk3 now loads before the iwad.
2017-09-09 06:21:40 -04:00
Rachael Alexanderson
9d2b114657
- rename gzdoom_optional_assets.pk3 to zd_extra.pk3
2017-09-09 05:54:06 -04:00
alexey.lysiuk
8a37356c33
New .icns macOS icon from the same images as Window .ico
2017-09-09 11:28:33 +03:00
Rachael Alexanderson
7cc073b7d2
- Added an .ico file compiled by Kinsie from an image set on the forum.
2017-09-07 17:18:26 -04:00
Rachael Alexanderson
f71a6e249d
- remove unsafe math operations for armv8
2017-09-07 15:56:00 -04:00
Rachael Alexanderson
cfdfd7acef
- remove unsafe math operations for armv8
2017-09-07 15:55:39 -04:00
Rachael Alexanderson
6f98c5e8fb
- replace potentially infringing static EXE assets (including icons) with ones from GZDoom-GPL
2017-09-07 04:13:30 -04:00
Rachael Alexanderson
b7f6126bcd
- First commit of archive split - preserve original assets
...
- Added: d_main.cpp now searches for "gzdoom_optional_assets.pk3" - this can be changed in version.h for fork authors.
- Updated forum links to point to ZDoom.org.
2017-09-07 04:08:09 -04:00
Magnus Norddahl
7a1274ab76
- Collect all PVS information first so that processing the individual sectors can be done on multiple threads
2017-09-07 00:34:09 +02:00
alexey.lysiuk
85ffeebb96
Fixed IWAD detection for case-sensitive file systems
...
https://forum.zdoom.org/viewtopic.php?t=57770
2017-09-05 10:33:07 +03:00
Magnus Norddahl
dd0bc02eec
- Convert PolyTranslucentObject to be a base class for all the different forms of translucent objects to be drawn
2017-09-02 18:17:55 +02:00
Magnus Norddahl
23aebaecc6
- Cleaned up some copyright statements
...
- Removed unused cull argument from some functions
2017-09-02 17:14:02 +02:00
Magnus Norddahl
0f0cf7261e
- Remove unused code
2017-09-02 15:02:06 +02:00
nashmuhandes
7195af40f8
Bump DEMOGAMEVERSION due to changes to DEM_FOV and DEM_MYFOV commands.
2017-09-02 09:57:48 +02:00
nashmuhandes
3c39d51c83
Fixed a wrong variable type declaration.
2017-09-02 09:57:48 +02:00
nashmuhandes
c885b6aa35
Send player FOV across the network as floatig point.
2017-09-02 09:57:48 +02:00
Christoph Oelckers
2a291165ee
- fixed: For original Hexen, executing a death special should not clear it. This addresses the bell in HexDD's Badlands being rung before it is ready to use. This also removes the redundant special handling in the ZBell actor.
2017-09-02 09:16:26 +02:00
Christoph Oelckers
eade38fb09
- fixed crash when defining a global constant which references a class member constant in its value.
2017-09-02 08:14:50 +02:00
Christoph Oelckers
12ad7ee933
Do not call DoEffect when predicting player movement.
2017-09-02 07:57:03 +02:00
nashmuhandes
f96f71044f
Change camera texture FOV to doubles.
2017-09-02 07:44:38 +02:00
Magnus Norddahl
b80bf6930a
- Translucent 3d floor plane support
2017-09-02 02:51:09 +02:00
Magnus Norddahl
393373a661
- Clean up plane rendering code slightly
2017-09-02 02:12:29 +02:00
Magnus Norddahl
fbaa3e7cb0
- Removed unused cull function argument
2017-09-02 01:34:36 +02:00
Magnus Norddahl
e851734b33
- Added translucent 3d floor walls support
2017-09-02 01:24:57 +02:00
Magnus Norddahl
b3916c1d01
- Add FF_UPPERTEXTURE and FF_LOWERTEXTURE support to softpoly
2017-09-02 00:35:48 +02:00
alexey.lysiuk
122f5d9515
Fixed crash caused by script number collision of ACS typed scripts
...
Wrong typed script can be picked when the same ACS script number is used for different script types from multiple behavior lumps
Although script in particular state is discarded and null pointer could be dereferenced
https://forum.zdoom.org/viewtopic.php?t=57718
2017-08-31 11:40:16 +03:00
alexey.lysiuk
ca55d8993f
Added Actor.A_SoundVolume(int slot, double volume) function to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57594
2017-08-31 09:45:09 +03:00
Magnus Norddahl
77faab5a75
- Fixed overflow for precise blend mode
2017-08-29 19:25:05 +02:00
alexey.lysiuk
20d7c01fc8
Fixed Infinity and NaN floating point values formatting as string
...
https://forum.zdoom.org/viewtopic.php?t=57706
2017-08-29 11:39:50 +03:00
nashmuhandes
541fac8c6b
Cleaned up and shorted the code for R_SetFOV.
2017-08-28 21:14:11 -04:00
nashmuhandes
30966ef951
Use a fallback FOV for the R_SetFOV call.
2017-08-28 21:14:11 -04:00
nashmuhandes
42db31b816
Added per-actor camera FOV.
2017-08-28 21:14:11 -04:00
Magnus Norddahl
27dfebdb7d
- Fix plane light levels used when a sector has a lightlist
2017-08-29 01:22:10 +02:00
Magnus Norddahl
293f62fcd2
- Striped wall (lightlist) support
...
- Add two extra clipping planes to poly backend
- Make ShadedTriVertex internal to drawer backend
2017-08-27 23:26:54 +02:00
Magnus Norddahl
8c146e4e71
- Transfer light support
2017-08-27 17:27:49 +02:00
Magnus Norddahl
45388d8a31
- Clip decals to the wall part
2017-08-27 17:18:39 +02:00
Christoph Oelckers
948e50e458
- fixed: The struct field compiler did not check for forward declared type references that hadn't been resolved yet.
2017-08-27 12:31:47 +02:00
Christoph Oelckers
485c4c71b5
- fixed: When stepping through a sector portal and touching a two sided line on the opposite side, its opening must be used, regardless of the FFCF_NOFLOOR flag.
2017-08-27 10:36:34 +02:00
Christoph Oelckers
e424ef63f2
- fixed: Sprites drawn in the opaque pass still need to set their texture mode so that they can be drawn with STYLE_Stencil.
2017-08-27 09:58:25 +02:00
Christoph Oelckers
ca47b138be
- fixed missing check for bad IWADs.
2017-08-27 09:57:37 +02:00
Christoph Oelckers
2e670ae71d
- fixed: When offsetting the projectile for testing, P_CheckMissileSpawn must also reset the projectile's sector to its new location.
...
If this isn't done the portal checks may fail and create incorrect positioning info.
2017-08-27 09:16:04 +02:00
Mike Swanson
1bc8fe7312
Add GOG path for Doom 3: BFG Edition
2017-08-26 09:01:02 +02:00
alexey.lysiuk
fae52d398b
Properly handle VM abort exception when occurred in menu
...
https://forum.zdoom.org/viewtopic.php?t=57677
2017-08-25 15:36:06 +03:00
alexey.lysiuk
7b98fdb910
Added ToInt() and ToDouble() functions to ZScript string
...
https://forum.zdoom.org/viewtopic.php?t=57678
2017-08-25 15:09:18 +03:00
Magnus Norddahl
b9dc06a4c8
- Fix crash in legacy and deferred light paths
2017-08-21 18:42:07 +02:00
alexey.lysiuk
2375823055
Adapted Cocoa IWAD picker to recent changes in IWAD loading
2017-08-20 12:35:40 +03:00
Christoph Oelckers
cc3e36cfdc
- reinstate '.wad' default extension for -iwad parameter.
2017-08-20 10:50:19 +02:00
Christoph Oelckers
2e845584c3
- removed the Linux specific handling for adding upper- and lowercase variants of the IWAD names to the list. Since the new code is doing case insensitive comparisons with a directory scan this is no longer needed to find the files.
2017-08-20 09:37:13 +02:00
Christoph Oelckers
62cbddb7d2
- fixed comparison with previously loaded IWAD. There still was an unnecessary call to ExtractFileBase in there which mangled the name.
2017-08-20 09:28:36 +02:00
alexey.lysiuk
cafd1ca26e
Fixed compilation of non-Windows targets
2017-08-20 09:50:51 +03:00
Christoph Oelckers
a6d09596cf
- this shouldn't have gotten reverted.
2017-08-20 08:03:48 +02:00
Christoph Oelckers
9878477612
Revert "- fix linux compile"
...
This reverts commit b8c0e78c91
et al.
Instead, use the already provided access function I_FindName to get the file name from findstate_t.
Also made the contents of findstate_t private so that use of the access functions is required to retrieve the information and direct access triggers a compile error.
2017-08-20 08:01:41 +02:00
Rachael Alexanderson
1ee3239f9e
- fixed compile on Clang
2017-08-19 22:57:48 -04:00
Rachael Alexanderson
b7d26b3fa1
- fixed Linux IWAD search thanks to a suggestion by Chris on the forum. Moved the search macros to i_system.h for both platforms. Neither are compatible with the other. This can be improved upon later, but for now, at least the major compile issue is fixed.
2017-08-19 22:10:45 -04:00
raa-eruanna
b8c0e78c91
- fix linux compile
2017-08-19 17:32:10 -04:00
Christoph Oelckers
f3d31e055f
- print the version at the start of the log.
2017-08-19 20:13:12 +02:00
Christoph Oelckers
cdff5bdc08
- rewrite of the IWAD loading mechanism.
...
The old code went through a list of predefined file names and looked each of them up in a list of predefined directories until it found a match. This made it nearly impossible to add custom IWAD support because the list of valid file names could not be extended.
This has now been switched around to run a scan for matching files on each given directory. With this approach it can look for *.iwad and *.ipk3 as IWAD extensions as well and read an IWADINFO out of these files that can be added to the internal list of IWADs, making it finally possible to define custom IWADs without having to add them to the internal list.
(This isn't fully tested yet so some errors may still occur.)
2017-08-19 19:30:48 +02:00
Magnus Norddahl
2f5535dbca
- Fix HOM for Line_Horizon specials when used with a skybox
2017-08-19 14:32:34 +02:00
Rachael Alexanderson
45d5eac6ad
- fix last commit - somehow it pushed an old version of the fix (yet again?...) - this is the proper fix.
2017-08-19 06:03:26 -04:00
Rachael Alexanderson
dae83f989b
- fixed: changing 'uiscale' did not always update the screen size properly.
2017-08-19 05:58:04 -04:00
alexey.lysiuk
69e7bb57d4
Fixed VM abort with null activator for SecretTrigger object
...
https://forum.zdoom.org/viewtopic.php?t=57612
2017-08-19 11:19:29 +03:00
alexey.lysiuk
ec42e30614
Fixed compilation warning reported by Clang
...
src/polyrenderer/scene/poly_wall.cpp:166:15: warning: '&&' within '||' [-Wlogical-op-parentheses]
2017-08-19 11:18:52 +03:00
Rachael Alexanderson
1cddd1efaf
- RFF_UNCLIPPEDTEX is no longer supported in SoftPoly.
2017-08-18 23:04:11 -04:00
Magnus Norddahl
05ca52d693
- Fix texture coordinates for 3d floor walls
2017-08-19 00:53:41 +02:00
Rachael Alexanderson
b8ab626609
- add sloped 3D floor support to the poly renderer's GetCaps()
2017-08-18 18:33:19 -04:00
Rachael Alexanderson
8a7090b4b7
Revert "- In software rendering, lights now check if they are too far above or below a certain plane before rendering. An example of this is in unloved.pk3 where in map02, some lights are above the ceiling."
...
- fixed accidental QZDoom rename
This reverts commit eb425f206a
.
2017-08-18 18:19:39 -04:00
Rachael Alexanderson
eb425f206a
- In software rendering, lights now check if they are too far above or below a certain plane before rendering. An example of this is in unloved.pk3 where in map02, some lights are above the ceiling.
2017-08-18 18:14:43 -04:00
Magnus Norddahl
dd6e0b63f2
- Fix typo in pal drawers that caused rendering errors for non-64x64 flats
2017-08-18 21:12:44 +02:00
Magnus Norddahl
c144eefdad
- Draw sloped 3d floors
2017-08-18 20:19:17 +02:00
alexey.lysiuk
54abe5f5d4
Fixed handling of default arguments in Actor.GiveSecret()
2017-08-18 11:22:18 +03:00
Magnus Norddahl
8034793193
- Wrap midtex support
2017-08-17 23:14:02 +02:00
Magnus Norddahl
c2fa360bbc
- Improve 3d floor and underwater rendering
2017-08-17 22:34:23 +02:00
Magnus Norddahl
7993ad987c
- Fix texture coordinates for lines split into multiple segments in softpoly
2017-08-17 20:54:44 +02:00
Magnus Norddahl
3cf5fb45ae
- Add camera extra light to flats
2017-08-17 00:28:58 +02:00
Magnus Norddahl
122c56f005
- Add fog boundary support to softpoly
2017-08-17 00:10:43 +02:00
David Carlier
8d8c353465
Attempty to free memory leaks.
2017-08-16 16:31:23 -04:00
Magnus Norddahl
fbd381988b
- Fix wall UV scaling and offsetting bugs in softpoly
2017-08-16 22:26:05 +02:00
Magnus Norddahl
c3562fead2
Merge branch 'dynlightmodels'
2017-08-15 00:27:26 +02:00
alexey.lysiuk
c7d28b0a24
Fixed incorrect damage flags' checks for A_Kill...() functions
...
Only GCC 7 reported this as a warning but only for one occurrence:
src/p_actionfunctions.cpp:5909:22: warning: enum constant in boolean context [-Wint-in-bool-context]
2017-08-13 17:48:49 +03:00
alexey.lysiuk
d645e55545
Unified suppression of format warnings for GCC and Clang
...
This disables the following compilation warning reported by Clang:
src/p_3dfloors.cpp:1002:24: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
2017-08-13 17:39:15 +03:00
alexey.lysiuk
eb52088487
Fixed compilation warnings reported by Clang
...
src/gl/scene/gl_sprite.cpp:685:34: warning: '&&' within '||' [-Wlogical-op-parentheses]
src/polyrenderer/scene/poly_sprite.cpp:297:34: warning: '&&' within '||' [-Wlogical-op-parentheses]
src/swrenderer/scene/r_opaque_pass.cpp:975:35: warning: '&&' within '||' [-Wlogical-op-parentheses]
src/sound/mididevices/music_timiditypp_mididevice.cpp:548:30: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
2017-08-13 16:42:08 +03:00
alexey.lysiuk
b077518c89
Fixed crash when morph item is used from ACS
...
https://forum.zdoom.org/viewtopic.php?t=57571
2017-08-13 16:15:31 +03:00
alexey.lysiuk
4afface97c
Fixed camera rotation from FraggleScript
...
https://forum.zdoom.org/viewtopic.php?t=57559
2017-08-13 12:22:48 +03:00
Magnus Norddahl
6d6c25bb26
- Add sprite adjustment to softpoly
2017-08-13 01:10:33 +02:00
Magnus Norddahl
bf38fd57b0
- Replace subsector gbuffer in softpoly with a zbuffer
2017-08-12 15:16:31 +02:00
Christoph Oelckers
4483d665d4
- fixed: FastProjectile's movement code was missong a portal check.
2017-08-12 13:58:16 +02:00
alexey.lysiuk
89980d9e77
Fixed linking with GCC and Clang toolchains
2017-08-12 14:41:23 +03:00
Christoph Oelckers
ba9cf02385
- added a user reserved range of statnums from 70-90
2017-08-12 13:08:11 +02:00
Christoph Oelckers
f52e767b51
- fixed: a destination-less line portal should be ignored by the sight checking code.
2017-08-12 12:51:45 +02:00
Christoph Oelckers
4261a0c592
- print a warning if a decal definition cannot find an animator.
...
This is important because DECALDEF cannot tentatively find animators declared after the decal.
2017-08-12 12:30:42 +02:00
Christoph Oelckers
aa8424982c
- fixed: The color for untranslated font was missing its alpha channel.
2017-08-12 12:04:40 +02:00
Christoph Oelckers
163b10286f
- Reset interpolation coordinates for all actors before the current thinking turn instead of at the start of each actor's own Tick function so that indirect actor movement gets properly interpolated.
2017-08-12 11:48:36 +02:00
Christoph Oelckers
c1de32896c
- addressed incorrect ACS printbold implementation: For native Hexen maps it will now be correct, but all others will have to set a flag in MAPINFO's 'gameinfo' section to avoid problems with numerous ZDoom maps depending on the incorrect implementation.
2017-08-12 10:20:34 +02:00
Christoph Oelckers
b4fa95ab15
- handle state label resolution in a non-actor cpntext more gracefully.
...
Note that this is merely a hotfix. Properly handling this to allow universal use of state scopes will require more work in cases where a scoped state is being accessed through a non-self pointer.
2017-08-12 10:04:06 +02:00
Christoph Oelckers
0db79f8dec
- removed tag 0 check for 3D floors because as seems to be par for course in Doom modding, some people actually exploited this bug.
2017-08-12 09:15:59 +02:00
alexey.lysiuk
ef9c3b4f54
Fixed unset inflictor in WorldThingDamaged event
...
https://forum.zdoom.org/viewtopic.php?t=57527
2017-08-09 16:16:33 +03:00
alexey.lysiuk
33beca6e6f
Exposed ToLower() and ToUpper() string functions to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=57515
2017-08-07 15:24:18 +03:00
raa-eruanna
507122b778
- put in actorinlines include as suggested by dpjudas here, to fix compile: https://forum.zdoom.org/viewtopic.php?f=2&t=57484
2017-08-04 09:13:20 -04:00
Jonathan Russell
03640a16ea
- removed ZScript DrawLine palcolor arg
2017-08-03 02:09:48 +01:00
Jonathan Russell
941d89042a
- externalise DCanvas::DrawLine to ZScript
2017-08-03 01:20:55 +01:00
Magnus Norddahl
801fbddd47
- Fix gcc compile error
...
- Fix weapon null pointer crash
2017-08-02 01:41:48 +02:00
Magnus Norddahl
aaa00cbcb9
- Include all lights touching a model actor's render radius
2017-08-01 00:43:58 +02:00
Magnus Norddahl
04be9fe6f2
- Remove test code committed by accident
2017-07-31 20:09:45 +02:00
Rachael Alexanderson
8dff91915a
- remove vestigial version.h include from r_portal.cpp. This should stop r_all.o from compiling every single commit.
2017-07-31 11:12:08 -04:00
Kevin Caccamo
7ff0040f30
Add a null pointer at the end of TimidityArgs
...
This actually got the execvp call working consistently for me; now I can listen to MIDI music in GZDoom again.
2017-07-31 11:05:28 -04:00
Kevin Caccamo
a4370a3529
Null-terminate strings
2017-07-31 11:05:28 -04:00
Kevin Caccamo
ff35620a09
Fix freeze when timidity_exe is not set to timidity's absolute path
2017-07-31 11:05:28 -04:00
Kevin Caccamo
18e76c978c
Fix code style, and make some minor changes
...
Assume timidity is in the user's PATH if not the specified location
Also, get the error message for the execvp failure if it does fail
2017-07-31 11:05:28 -04:00
Kevin Caccamo
233fce7ef6
Initial attempt to make timidity work on Linux again
...
Add code to find the timidity executable, and split the command line into separate arguments by spaces.
For some reason, this doesn't work, although reverting 64e96c5f
makes timidity work again.
2017-07-31 11:05:28 -04:00
Christoph Oelckers
49b77f3a17
- added per-level exit texts independent of the current cluster.
...
This is mainly to support UMAPINFO which does not have clusters but has been extended to define separate exit texts for each target map that can be reached from a given map.
Special names 'normal' and 'secret' can be used to define texts specific to the default exits.
New MAPINFO properties:
* exittext = mapname, "text"...
* textmusic = mapname, "musicname", order
* textflat = mapname, flatname
* textpic = mapname, picname
textflat and textpic are like 'flat' and 'pic' for clusters, one defines a tiled background, the other a fullscreen image.
Setting an empty exittext will disable a cluster-based text screen that may apply to the given map.
2017-07-30 22:50:27 +02:00
Rachael Alexanderson
c07a4461a0
- fixed: GetCaps() did not account for r_drawvoxels cvar
2017-07-30 10:45:05 -04:00
Magnus Norddahl
d5733f515c
- Support binding textures for custom PP shaders
2017-07-30 13:59:25 +02:00
alexey.lysiuk
6a5bad0beb
Added developer message about unknown GAMEINFO entry
2017-07-30 12:26:18 +03:00
Rachael Alexanderson
b6c15b997a
- added 'r_debug_disable_vis_filter' cvar for debug purposes, to show all objects regardless of their actor filter fields.
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
1bfc2faa49
- added 'r_showcaps' command which serves as a documentation for available flags and shows what flags are in use by the current rendering settings
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
91ff447a90
- fixed compile from last commit
...
- refactored the zscript hookup a bit, made it actually work
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
712d21e26a
- implement per-renderer sprite hiding based on the actor's render feature flags
...
- hook the thing up to zscript (does not currently compile)
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
8bb5687159
- Implemented GetCaps() for the software renderer
...
- fixed: Forgot to describe Brightmap capability in the GL Renderer
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
9a9fe7c133
- implemented GetCaps() for OpenGL
...
- renamed RFF_FRAGMENTSHADER to RFF_MATSHADER
- D_Display now calls Renderer->GetCaps() and stores it in a global variable for later use.
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
64deba45a3
- added another render filter
2017-07-29 17:03:43 -04:00
Rachael Alexanderson
80bb1d908a
- basic groundwork for render feature visibility flags. I haven't gotten very far with it yet, but since I am taking a break I am going to commit what I have and continue it later.
...
todo:
* call a render class function in D_Main that enumerates the capabilities of the current renderer into a global variable to be accessed later
* add a debug-specific cvar to always show all actors, regardless of these filters
* put in checks in the renderer themselves that check both flagsets and reject rendering of any sprite/model that does not fit the definition's criteria
2017-07-29 17:03:43 -04:00
raa-eruanna
0df2779004
- fixed mac compile(hopefully?)
2017-07-29 17:03:18 -04:00
raa-eruanna
af32edd054
- fixed linux compile
2017-07-29 16:47:10 -04:00
Magnus Norddahl
7d21fe6d75
- Fix mouse position being wrong when vid_scalemode is active
2017-07-29 19:26:53 +02:00
Rachael Alexanderson
3540440bf6
- add 1280x800 scale mode
2017-07-27 12:19:41 -04:00
Rachael Alexanderson
10e1600faf
- Replaced one more vid_scalemode check with a more versatile ViewportIsScaled43 check
2017-07-27 12:19:41 -04:00
raa-eruanna
5795e0fd3e
- included another header in order to fix an error reported by travis ci
2017-07-27 03:37:01 -04:00
Rachael Alexanderson
030450b6a9
- fixed: include missing header
2017-07-27 03:08:42 -04:00
Rachael Alexanderson
16e38816ba
- oops, forgot one thing in the last commit...
2017-07-27 03:07:19 -04:00
Rachael Alexanderson
30087f7cd7
- cleaned up the video scale mode code a bit, in order to increase future flexibility.
2017-07-27 03:05:01 -04:00
Rachael Alexanderson
f1a6ef9cc8
- changed sv_singleplayerrespawn from 'latch' to 'cheat' since it was originally coded before the CVAR_CHEAT flag was implemented.
2017-07-26 13:34:17 -04:00
Rachael Alexanderson
012496ee98
- added cheat protection to sv_damagefactor*
2017-07-26 13:32:45 -04:00
Magnus Norddahl
cbda6e9427
- Improve dynamic lights for the HUD model
2017-07-26 09:18:05 +02:00
Magnus Norddahl
0c0f0789c2
- Improved dynamic lights on models
2017-07-25 23:00:09 +02:00
Magnus Norddahl
d2e0933a81
- Fix packed normal order bug
2017-07-25 20:20:13 +02:00
Magnus Norddahl
4e14ed4e9e
- Hook up model normals
2017-07-25 20:20:12 +02:00
Rachael Alexanderson
e0494b6f13
- fixed an issue with previous commit that undid some scaling code
2017-07-25 08:09:01 -04:00
David Carlier
64e96c5f46
OpenBSD support
2017-07-25 07:56:19 -04:00
Rachael Alexanderson
e42500c07a
Revert "- ported Linux crash fix to Mac"
...
This reverts commit 6a49251722
.
2017-07-25 07:34:26 -04:00
Rachael Alexanderson
6a49251722
- ported Linux crash fix to Mac
2017-07-25 06:55:29 -04:00
Magnus Norddahl
d8c6966917
- Fixed startup crash on Linux
2017-07-25 11:51:15 +02:00
Christoph Oelckers
b81a23c5e5
- fixed return type of CountsAsKill.
2017-07-25 08:14:46 +02:00
Rachael Alexanderson
28af2fe66b
- maxviewpitch now affects the 2.5D software renderer
2017-07-24 10:33:44 -04:00
Christoph Oelckers
cd2a349c36
- fixed name generation for cached nodes to not contain any ':'. A colon inside a file name will cause Windows to write the data to an alternate data stream.
2017-07-24 09:20:35 +02:00
Magnus Norddahl
e06f87cf10
- Added 0.75x scale mode
2017-07-24 08:35:27 +02:00
Magnus Norddahl
1ce3b4c79c
- Fix dynamic light clamping issue in truecolor drawers
2017-07-23 23:45:43 +02:00
Magnus Norddahl
bf4d7234e1
- Increase MAXWIDTH and MAXHEIGHT defines to support supersampled 5K monitors
2017-07-23 22:04:00 +02:00
Magnus Norddahl
1a4cf16168
- Fix swtruecolor cvar messing up the chosen video mode
2017-07-23 20:54:03 +02:00
Magnus Norddahl
18f0f6be4b
- Pixel stretch for 320x200 and 640x400 in glswfb
2017-07-23 17:26:55 +02:00
Rachael Alexanderson
2f37c4b272
- added vid_scalemode == 4 to super-sample the screen
2017-07-23 11:24:04 -04:00
Magnus Norddahl
449c4cb711
- Pixel stretch 320x200 and 640x400 scale modes in the GL renderer
2017-07-23 17:18:25 +02:00
Rachael Alexanderson
45a37211e4
- added special handling for vid_scalemode == [1||2] to force video aspect scaling off unless the user explicitly specified an aspect override.
2017-07-23 10:49:13 -04:00
Rachael Alexanderson
b30b93f40f
- made postprocess shader parsing a little more strict, will error out more frequently with common mistakes.
2017-07-23 06:11:04 -04:00
alexey.lysiuk
7436693860
Enabled dynamic stack size in ZScript parser generated by Lemon
...
https://forum.zdoom.org/viewtopic.php?t=57322
2017-07-23 11:54:16 +03:00
Magnus Norddahl
370e53befe
- Replace vid_max_width and vid_max_height with vid_scalemode for the GL software framebuffer backend
...
- Fix a crash if the window was resized before creating a game
- Fix main menu scaling being wrong if the video mode didn't match the unscaled screen size
2017-07-23 04:23:13 +02:00
Magnus Norddahl
c3702ae9e7
Add vid_scalemode support to GL framebuffer
2017-07-23 00:33:56 +02:00
Rachael Alexanderson
2e6c4eeab9
- removed NOSAVE flags from sv_damagefactor* cvars so that they get put in a savegame
2017-07-22 08:25:39 -04:00
Rachael Alexanderson
a958d2ad72
- fixed pixel centering for unaccelerated player sprites
2017-07-22 08:01:27 -04:00
Rachael Alexanderson
04db494310
- 'kill baddies' cheat now describes what it is killing. This is mostly for multiplayer purposes when other players see the feedback when the cheat is used, allowing players to see if it was 'kill monsters' or 'kill baddies'
2017-07-22 07:25:58 -04:00
Magnus Norddahl
8311a18282
- Fix plane pixel center sampling bug
2017-07-22 12:29:46 +02:00
Magnus Norddahl
3ff021608d
- Fix pixel center sampling bug in SWCanvas::DrawTexture
2017-07-22 10:40:30 +02:00
alexey.lysiuk
c56cd245ac
Added IndexOf() and LastIndexOf() functions to ZScript string type
...
https://forum.zdoom.org/viewtopic.php?t=57313
2017-07-22 10:54:32 +03:00
Magnus Norddahl
ebd20daed8
- Fix wall texture sampling to be done at pixel centers
2017-07-22 01:45:06 +02:00
Rachael Alexanderson
8d95ee6882
- 'Player' is turbo! cheat is no longer shown in single player.
2017-07-21 17:21:58 -04:00
Magnus Norddahl
5be74890b7
- Fix missing pixels on walls in palette mode for npot2 textures
2017-07-21 22:48:44 +02:00
Christoph Oelckers
714ada01aa
Merge remote-tracking branch 'remotes/origin/qzdoom-merge'
2017-07-20 18:33:20 +02:00
Christoph Oelckers
e8e940d221
- fixed portal handling for P_CheckMissileSpawn to obey commonly established rules about portal types.
2017-07-20 18:32:54 +02:00
Christoph Oelckers
ffc529d100
- let r_*_cull variables default to 0.
2017-07-20 14:23:45 +02:00
Christoph Oelckers
03ed0656e1
- fixed: The frame timer for interpolating the renderer should always take its time from the actual beginning of the frame instead of checking the system timer in real time when rendering starts.
...
This fixes two issues:
* timer related texture animations are not being recreated multiple times if a scene renders multiple viewpoints (e.g. camera textures or portals.)
* interpolation is smoother when maps have a high think time of multiple milliseconds. A good map to see the difference would be ZDCMP2 which has a think time of 4-5 milliseconds. With the timer taken in real time after the thinkers have run and VSync on this resulted in alternating time slices of 11 and 21 ms between frame interpolations instead of an even 16 as should be done for smooth 60 fps because roughly every second frame was offset by those 5 ms.
2017-07-20 14:20:50 +02:00
Rachael Alexanderson
d020ec68d2
Merge branch 'master' into qzdoom-merge
2017-07-20 06:43:03 -04:00
Rachael Alexanderson
bc38f7f776
- changed gl_ssao_portals default to 1
2017-07-20 06:41:34 -04:00
Rachael Alexanderson
77617a2757
Merge branch 'master' into qzdoom-merge
2017-07-19 17:32:41 -04:00
Rachael Alexanderson
5918167fb3
- added 'kill baddies' cheat - does the same thing as 'kill monsters' only it ignores friendly monsters
2017-07-19 15:03:27 -04:00
Rachael Alexanderson
62a4eb6b6d
- fixed a comment in version.h about the current ZScript version (it was out of date)
2017-07-19 11:04:53 -04:00
alexey.lysiuk
bbb8374b06
Fixed applying of color to untranslated fonts in hardware renderer
...
https://forum.zdoom.org/viewtopic.php?t=57268
2017-07-19 15:00:55 +03:00
alexey.lysiuk
f4672d67bc
Fixed crash when drawing untranslated font
...
https://forum.zdoom.org/viewtopic.php?t=57268
2017-07-19 13:24:19 +03:00
Rachael Alexanderson
1f6d15c741
- Rename QZDoom back to GZDoom again for merge.
2017-07-19 06:13:05 -04:00
Rachael Alexanderson
bac72600f0
Merge remote-tracking branch 'origin/master' into qzdoom-merge
2017-07-19 06:11:13 -04:00
Christoph Oelckers
579840987d
- added per-class think time profiling tool.
2017-07-17 10:21:58 +02:00
Rachael Alexanderson
a383dacbe6
Merge https://github.com/coelckers/gzdoom
2017-07-16 01:38:25 -04:00
alexey.lysiuk
490e873602
Moved parallel_for() function template to own header file
2017-07-15 12:16:06 +03:00
Rachael Alexanderson
a3e782a164
Merge https://github.com/coelckers/gzdoom
2017-07-15 03:48:13 -04:00
Rachael Alexanderson
9eb0b64ab0
- Added new "sv_damagefactor*" variables.
...
sv_damagefactorplayer: Scales damage for player
sv_damagefactorfriendly: Scales damage for all other +FRIENDLY objects
sv_damagefactormobj: Scales damage for everything else (incl. monsters and decorations)
2017-07-15 03:38:10 -04:00
Christoph Oelckers
ac30e47ab4
- Added an 'srand' call to the RBG initialization.
...
This is needed because 'rand' gets used by parts of the sound code (e.g. playlists.)
2017-07-15 09:34:07 +02:00
Christoph Oelckers
daca12600d
- fixed: The ADDA_RK opcode used the wrong constant type for the offset it adds to the pointer.
2017-07-15 09:14:39 +02:00
Christoph Oelckers
98124c8049
- avoid using plain chars as variables.
...
This is all I found with a quick search, there's probably more...
2017-07-15 09:01:02 +02:00
Rachael Alexanderson
c1e3f10802
Merge https://github.com/coelckers/gzdoom
2017-07-15 00:24:25 -04:00
alexey.lysiuk
970adff5e7
Use multiple threads for xBRZ upscaling
...
Implementation relies on Concurrency Runtime, Grand Central Dispatch aka libdispatch or OpenMP depending on their availability
2017-07-14 16:01:38 +03:00
alexey.lysiuk
ac811f99c0
Fixed uninitialized variable in XLAT parser
...
https://forum.zdoom.org/viewtopic.php?t=57109
2017-07-13 18:05:58 +03:00
alexey.lysiuk
c6351825b8
Enable Core Profile on macOS only when OpenGL 3.3 is available
2017-07-13 18:05:58 +03:00
Rachael Alexanderson
7728875a7f
- Added 'enabled' property for PP shaders, to automatically enable them without ZScript
2017-07-13 05:57:12 -04:00
Magnus Norddahl
c38d0c1637
Merge branch 'line_distance_cull' into qzdoom
...
# Conflicts:
# src/swrenderer/scene/r_opaque_pass.cpp
2017-07-12 07:11:43 +02:00
Magnus Norddahl
7d1de667be
- Added r_line_distance_cull cvar that culls lines beyond the specified distance
2017-07-12 06:56:34 +02:00
Rachael Alexanderson
25900031f5
Merge https://github.com/coelckers/gzdoom
2017-07-11 06:22:51 -04:00
Rachael Alexanderson
25ab31e92c
- corrected transferred sky offsets using ZDoom 2.8.1 source - the sky needed to be offset by 28 units.
2017-07-11 05:53:21 -04:00
Rachael Alexanderson
28950b8a5d
- q2.1pre version
2017-07-10 13:15:52 -04:00
Rachael Alexanderson
e2744102c5
Merge https://github.com/coelckers/gzdoom
2017-07-10 11:39:46 -04:00
Rachael Alexanderson
d2c8a5c33d
Revert "Merge commit 'refs/pull/338/head' of https://github.com/coelckers/gzdoom "
...
This reverts commit 65bb8a5185
, reversing
changes made to 619281de64
.
2017-07-10 11:29:58 -04:00
Rachael Alexanderson
26355ece82
Revert "Merge commit 'refs/pull/338/head' of https://github.com/coelckers/gzdoom "
...
This reverts commit 035c036eb2
, reversing
changes made to 61660bf147
.
2017-07-10 11:29:30 -04:00
Rachael Alexanderson
8c0706e56f
Revert "Merge commit 'refs/pull/338/head' of https://github.com/coelckers/gzdoom "
...
This reverts commit 56806e3243
, reversing
changes made to e1a2de4989
.
2017-07-10 11:26:41 -04:00
Rachael Alexanderson
04b1163188
Revert "Add a comment"
...
This reverts commit d2f4dd41f8
.
2017-07-10 11:25:38 -04:00
alexey.lysiuk
2e33165edf
Moved freeing of data stored in HUD message objects to OnDestroy() function
...
https://forum.zdoom.org/viewtopic.php?t=57163
2017-07-10 10:41:50 +03:00
Rachael Alexanderson
e1b4bb11ba
Merge https://github.com/coelckers/gzdoom
2017-07-09 20:09:12 -04:00
Magnus Norddahl
ddd1b629c3
- Calculate globvis/r_visibility in r_utility and use it in GL and poly renderers
2017-07-09 19:01:34 +02:00
Magnus Norddahl
c8e713b067
- Remember maximized window state
2017-07-09 15:12:31 +02:00
alexey.lysiuk
afe1199b69
Fixed sound looping when stream length is a multiply of buffer size
...
https://forum.zdoom.org/viewtopic.php?t=57164
2017-07-09 13:28:16 +03:00
Rachael Alexanderson
15d92b346d
Merge https://github.com/coelckers/gzdoom
2017-07-08 09:31:43 -04:00
Magnus Norddahl
00893763ed
Merge branch 'custom_postprocess' into qzdoom
2017-07-08 14:44:30 +02:00
Magnus Norddahl
a38de996e7
- Move uniform declarations to the GLDEFS lump to make it Vulkan safe (a vulkan implementation can then declare them in an uniform block)
...
- Change SetUniform functions to be clearscope as they can be safely called from both play and ui
- Add PlayerInfo argument to SetUniform functions to force the modder to take network play into account
- Add enabled flag on custom postprocess shaders
- Removed custom texture support until a more clean implementation is written
2017-07-08 14:44:07 +02:00
alexey.lysiuk
58b348e75a
Skip autogenerated mouse move events in Cocoa backend regardless of mode
2017-07-08 13:36:55 +03:00
alexey.lysiuk
9292b23bb4
Restore mouse position when entering GUI capture mode in Cocoa backend
2017-07-08 12:46:38 +03:00
Magnus Norddahl
a4b96f7673
- Fix linker error
2017-07-06 18:02:27 +02:00
Magnus Norddahl
69a3d10cb6
Merge branch 'custom_postprocess' into qzdoom
...
# Conflicts:
# src/gl/renderer/gl_postprocess.cpp
2017-07-06 05:41:16 +02:00
Magnus Norddahl
8a0e801cb5
- Move custom postprocess shader to its own file
2017-07-06 05:36:01 +02:00
Rachael Alexanderson
1cfaae78d9
- Add new "scene" target for custom postprocess shaders
...
- Add "gl_custompost" cvar to turn off custom postprocess shaders completely
- Made "scene" affect the screen before 2D drawing, made "screen" affect the entire screen after 2D drawing
2017-07-06 04:45:51 +02:00
Rachael Alexanderson
2bfd7859e4
Merge remote-tracking branch 'origin/custom_postprocess'
2017-07-03 17:17:17 -04:00
Magnus Norddahl
e161bba146
- Specify shader uniforms from ZScript
2017-07-03 22:30:49 +02:00
Rachael Alexanderson
5c87cdd786
- Add new "scene" target for custom postprocess shaders
...
- Add "gl_custompost" cvar to turn off custom postprocess shaders completely
- Made "scene" affect the screen before 2D drawing, made "screen" affect the entire screen after 2D drawing
2017-07-02 21:04:22 -04:00
Rachael Alexanderson
edb45cd70d
Merge remote-tracking branch 'origin/custom_postprocess'
2017-07-02 19:56:57 -04:00
Magnus Norddahl
1b5f3da9c5
- Fix lump lookup
2017-07-03 01:50:51 +02:00
Magnus Norddahl
befe081683
- Upload custom texture
2017-07-03 01:29:03 +02:00
Magnus Norddahl
ee6d7cf17e
- Add initial postprocess shader support to GLDEFS file
2017-07-03 01:26:02 +02:00
Rachael Alexanderson
0d8b7c55ef
- added a grayscale formula selector
2017-07-02 16:45:06 -04:00
Rachael Alexanderson
bd02893ce7
- expanded hard limits for saturation to -15.0/15.0
...
- added menu option for saturation
- tried to get the new saturation shader to consume less GPU power by turning it off when it is 1.0
2017-07-02 16:45:06 -04:00
Rachael Alexanderson
63da6e70c0
- added a vid_saturation control - works in postprocessing, only.
2017-07-02 16:45:06 -04:00
Rachael Alexanderson
6a402c28d8
Merge https://github.com/coelckers/gzdoom
2017-07-02 16:36:46 -04:00
Rachael Alexanderson
aa2a39da19
Revert "- Remove r_sprite_distance_cull"
...
This reverts commit 44546ce16a
.
2017-07-02 16:35:40 -04:00
Magnus Norddahl
205350e726
- Fix sprites behind midtextures unrender when near voxel
2017-07-02 20:09:46 +02:00
Magnus Norddahl
6d8281c812
- Fix voxel clipping for r_scene_multithreaded
2017-07-02 18:22:28 +02:00
Magnus Norddahl
4545539045
- Add polyobj support to r_scene_multithreaded
2017-07-02 17:22:59 +02:00
Magnus Norddahl
adcc7588ec
- Make it more clear what bFakeBoundary did
2017-07-02 15:35:29 +02:00
Magnus Norddahl
efb1a8d113
- Don't add 3D floor dummy draw segments to the list
2017-07-02 14:46:19 +02:00
Magnus Norddahl
e19c8eba62
- Switch sprite drawing to use the interesting draw segments list
...
- Stop adding 3D floor "fake" draw segments to the interesting segments list
- Rename InterestingSegments list to TranslucentSegments
2017-07-01 23:55:41 +02:00
Rachael Alexanderson
c3cc3637db
Merge https://github.com/coelckers/gzdoom
2017-07-01 13:12:25 -04:00
Christoph Oelckers
5a761dd3c3
- fixed alpha of palette index 0 for ice and alpha translations.
2017-07-01 16:19:41 +02:00
alexey.lysiuk
71b70d74a9
Fixed error handling in vector by scalar multiplication
...
https://forum.zdoom.org/viewtopic.php?t=57089
2017-07-01 12:37:31 +03:00
alexey.lysiuk
925274ca0c
Added name of upcoming macOS to OS detection
2017-07-01 12:29:25 +03:00
Magnus Norddahl
42fedd0f4c
- Improve sprite performance when there are many draw segments
2017-07-01 03:31:06 +02:00
Magnus Norddahl
44546ce16a
- Remove r_sprite_distance_cull
2017-07-01 03:29:28 +02:00
Rachael Alexanderson
17aceac912
Merge https://github.com/coelckers/gzdoom
2017-06-29 03:50:22 -04:00
Magnus Norddahl
0cd575363f
- Add r_sprite_distance_cull that per default culls all things further than 5000 units away
2017-06-28 19:55:11 +02:00
Christoph Oelckers
c74356a1c0
- made OpenGL 3.3 a requirement for running the modern render path. Also force '-glversion 3' to use the modern render path, even though actual OpenGL 3.0 won't support it.
...
This will exclude Intel HD3000 and many obsolete drivers for NVidia and ATI which should have been updated long ago.
2017-06-28 17:57:04 +02:00
Rachael Alexanderson
c15880a2fc
Merge https://github.com/coelckers/gzdoom
2017-06-27 17:38:26 -04:00
Magnus Norddahl
9c3361dfe2
- Fix stat fps to write something slightly more useful
2017-06-27 21:15:26 +02:00
Christopher Bruns
e9f03102f4
Update fixed color map for each eye, so light goggles would work in both eyes in stereo 3d modes.
2017-06-27 17:55:11 +02:00
Rachael Alexanderson
cf400ba2db
Merge https://github.com/coelckers/gzdoom
2017-06-25 23:44:33 -04:00
Magnus Norddahl
b6e035e796
- Implemented radial fog support in software light mode
2017-06-25 15:02:34 +02:00
Rachael Alexanderson
7592e6d5de
Merge https://github.com/coelckers/gzdoom
2017-06-25 00:18:19 -04:00
Magnus Norddahl
f34ededdef
- Improved fuzz rendering in software renderer by scaling it relative to 320x200
2017-06-25 00:35:15 +02:00
Rachael Alexanderson
9cb9121549
Merge https://github.com/coelckers/gzdoom
2017-06-24 11:31:01 -04:00
alexey.lysiuk
279b1e27dc
Made usage of assertions in VM code consistent
...
https://forum.zdoom.org/viewtopic.php?t=56995
2017-06-22 10:36:08 +03:00
Rachael Alexanderson
9001009fcf
Merge https://github.com/coelckers/gzdoom
2017-06-22 01:42:33 -04:00
Rachael Alexanderson
f49794d6c6
- fixed: Due to recent changes, textures now use 'bgra' format in OpenGL. The palette tonemap shader had not yet been updated to reflect this.
2017-06-21 19:00:51 -04:00
Rachael Alexanderson
bdc99d9768
- fixed: fillsimplepoly drawer was using an inverted scale, leading to incorrect automap texture display.
2017-06-21 04:03:37 -04:00
Rachael Alexanderson
e60d627e88
Merge https://github.com/coelckers/gzdoom
2017-06-21 03:04:06 -04:00
Magnus Norddahl
fa36677bdb
- Removed power-of-two limitation from span drawers, except for slopes
2017-06-21 03:08:11 +02:00
Rachael Alexanderson
ff257fcfd7
Merge https://github.com/coelckers/gzdoom
2017-06-20 09:39:12 -04:00
Christoph Oelckers
f909b82074
- fixed: Blood translations did not properly treat color 0 as transparent.
2017-06-20 09:10:19 +02:00
Rachael Alexanderson
cc9fa8a6f5
- fixed: Prevent /0 errors when calculating console scale, which could happen in certain rare situations.
2017-06-19 23:46:07 -04:00
Rachael Alexanderson
e290274fb7
- fixed: Now fully fixed the 3d floor + fog boundary issue.
...
- Revert "- Partially fixed the 3d floors + fogboundary issue. There's still an issue when a sprite appears in front of a fog boundary, but because this is already a huge visual improvement I am going to go ahead and push this."
This reverts commit 7e292fbfec
.
2017-06-19 17:19:44 -04:00
Rachael Alexanderson
7e292fbfec
- Partially fixed the 3d floors + fogboundary issue. There's still an issue when a sprite appears in front of a fog boundary, but because this is already a huge visual improvement I am going to go ahead and push this.
2017-06-19 17:05:53 -04:00
Magnus Norddahl
8af76b96d8
- Fix clearfog crash
2017-06-19 20:36:28 +02:00
Rachael Alexanderson
d454fafc9e
Merge https://github.com/coelckers/gzdoom
2017-06-19 03:22:23 -04:00
Magnus Norddahl
490d7e3a35
- Remove clearfog goto
2017-06-19 00:55:32 +02:00
Magnus Norddahl
8beafbb7da
- Fix voxel speed regression in the palette software renderer
2017-06-18 19:45:15 +02:00
Christoph Oelckers
3b024c347b
- use a dedicated flag word for the dynamic light flags instead of piggybacking on some flags4 bits.
2017-06-18 10:15:31 +02:00
Christoph Oelckers
cf1d94c9bb
- fixed blood translation's alpha so that CreateTexBuffer can assume that all palette entries in translations are correct.
2017-06-18 09:23:56 +02:00