Commit graph

16344 commits

Author SHA1 Message Date
Rachael Alexanderson
731863da94 - modify the wording in the preset scaling menu to imply that all it does is pixel scaling, not change the actual screen resolution 2019-01-20 02:51:40 -05:00
Rachael Alexanderson
7b664ec210 - set resolution selector to auto detected resolution at startup, remove the entries from the config file
- committing a change for fullscreen sets scaling to 1.0 to guarantee the selected number of pixels are actually used
2019-01-20 02:45:35 -05:00
Christoph Oelckers
9b3b34c266 - fixed: G_WorldDone picked the wrong level to go to. 2019-01-20 08:35:27 +01:00
Christoph Oelckers
b038693960 - fixed: The rail attack only considered the puff's decal if it had ALWAYSPUFF set. 2019-01-20 08:35:27 +01:00
Rachael Alexanderson
fb00366d90 - add 4k UHD resolution to presets 2019-01-19 14:34:18 -05:00
Rachael Alexanderson
66f319491d - fix spacing on one of the resolution preset entries 2019-01-19 08:59:42 -05:00
alexey.lysiuk
df6669b32c - reverted GME Kss_Cpu.cpp to previous version
Update to GME 0.6.2 broke playback of MSX .kss files

https://forum.zdoom.org/viewtopic.php?t=63206
2019-01-19 14:02:04 +02:00
alexey.lysiuk
28611613da - applied proper use type to font textures
Font upscaling no longer depends on texture resizing setting

https://forum.zdoom.org/viewtopic.php?t=63184
2019-01-19 11:55:55 +02:00
Christoph Oelckers
651b412583 - fixed: particles used their subsector variables before it was set. 2019-01-19 10:51:47 +01:00
Christoph Oelckers
981a343589 - fixed: application of fake contrast should never result in a light level of 0 unless the sector's own light level is 0. 2019-01-19 10:30:06 +01:00
Christoph Oelckers
f23ff3c174 - fixed: TVector3::Pitch() got the sign inverted.
This caused bad calculations with CMF_OFFSETPITCH. Note that to compensate for the fix, the SphericalCoords function had to have its own inversion of the value removed so that it calculates the same result as before.
2019-01-19 09:58:18 +01:00
Christoph Oelckers
1c75a409b6 - normalize the pitch in ACS's SetActorPitch.
Apparently some people have to pass positive numbers in here to get a negative pitch, e.g. 350.0 instead of -10.0...
This prevents clamping of such out-of-range values that would otherwise constitute valid pitches with the wraparound in place.
2019-01-18 19:50:28 +01:00
alexey.lysiuk
395d613912 - fixed crash in actor iterator
Level pointer should passed to FActorIterator contructor regardless of 'last look actor' because the latter can be null

https://forum.zdoom.org/viewtopic.php?t=63304
2019-01-18 12:23:33 +02:00
alexey.lysiuk
66d9ec00a7 - workaround MSVC 2015 code generation issue, x64 only
With optimization turned on illegal instructions were generated for turbo CVAR handler function

https://forum.zdoom.org/viewtopic.php?t=63157
2019-01-18 12:07:13 +02:00
alexey.lysiuk
5e840a4e52 - workaround code generation issue in PlayerPawn.FindMostRecentWeapon()
Multiple values in returned from a subfunction cannot be used directly as a function result

https://forum.zdoom.org/viewtopic.php?t=63284
2019-01-18 11:50:26 +02:00
alexey.lysiuk
fc5420bf26 - fixed disappearing inventory after morphing pickup
When player is picked up item that does morph, the corresponding toucher actor is changed in process
Previously, morhing item was removed from original actor leaving player's inventory in inconsistent state

https://forum.zdoom.org/viewtopic.php?t=63124
2019-01-17 15:06:10 +02:00
Christoph Oelckers
3df112a7ba - allow assignment of line IDs through LevelCompatbility. 2019-01-17 01:41:42 +01:00
Christoph Oelckers
588d62be5c - fixed default alpha for sector colors
It has to be 0, not 255.
2019-01-17 01:05:09 +01:00
Christoph Oelckers
a92090690e - don't check for a map's freelook setting if there is no map.
Apparently on macOS, game events even get sent in the menu. This never happened on Windows…
2019-01-16 05:28:49 +01:00
Christoph Oelckers
49abe3678a - recalculate the line deltas if a nodebuild is needed
One potential cause is moving around vertices in which case these do not match anymore
2019-01-16 05:27:48 +01:00
Christoph Oelckers
91c934ab7f - do not open the automap when no level is loaded 2019-01-16 05:05:01 +01:00
Christoph Oelckers
9616de5f8a - Fixed error reporting for the BSP loader
Using global variables for this is bad, and it didn't even catch all cases. Now a node build is only considered successful if everything is set up successfully.
2019-01-16 05:04:47 +01:00
Christoph Oelckers
6f1491aa8d - mark the thinkers for collection, even if there is no level.
This is still WIP so for now needs a workaround.
2019-01-15 19:34:33 +01:00
Christoph Oelckers
a2965df5a9 - use the same level for all automap calls.
This reminds me: The automap really needs to be converted into a class and made independent of all those global variables...
2019-01-15 19:23:49 +01:00
Christoph Oelckers
3e34725966 - fixed: The default constructor for DThinker needs to set the OF_JustSpawned flag.
Without this, PostBeginPlay will not get called so several things aren't initialized, like weapon slots and other player settings.
2019-01-15 19:13:59 +01:00
alexey.lysiuk
c6866bad4d - fixed potentially missing event handlers
Event handlers linked list might skip an entry if its order was in a middle of existing handlers

https://forum.zdoom.org/viewtopic.php?t=63258
2019-01-15 18:41:13 +01:00
alexey.lysiuk
295dd326da - fixed wrong self type in Array.Resize()
https://forum.zdoom.org/viewtopic.php?t=63275
2019-01-15 15:57:14 +02:00
alexey.lysiuk
3b3af1dfe4 - removed unreferenced local variable
src\dthinker.cpp(748): warning C4101: 'list': unreferenced local variable
2019-01-15 15:57:14 +02:00
Christoph Oelckers
703cb9cf4e - changed global thinker storage into a struct instead of some static variables inside DThinker.
As it is now it can handle multiple thinker collections for different levels, but right now there's still only one global list for everything.
2019-01-14 18:50:39 +01:00
Christoph Oelckers
dd5addd6ad - fixed crash in the precaching code.
This didn't detect software canvas textures and crashed on the missing image.
2019-01-14 00:10:08 +01:00
alexey.lysiuk
bd964d43fc - fixed inverted blend in flash fader
Adventure of Square and Doom 64: Retribution are good test cases for this issue
2019-01-13 16:23:19 +02:00
Christoph Oelckers
2200e68794 - removed the level assignment in ChangeStatNum.
This would just overwrite what got set before
2019-01-13 13:57:52 +01:00
alexey.lysiuk
c2a78bbd21 - fixed another crash with stored commands on startup
Example: +map CCMD in command line options
2019-01-13 14:50:39 +02:00
alexey.lysiuk
b07ff3f504 - fixed return value of Actor.isFrozen()
https://forum.zdoom.org/viewtopic.php?t=63255
2019-01-13 14:46:35 +02:00
Christoph Oelckers
acb71de53c - removed bSerialOverride.
Now that thinker linking is no longer part of the constructor, this hack is no longer needed.
2019-01-13 13:43:43 +01:00
Christoph Oelckers
1a633701b3 Merge branch 'master' of https://github.com/coelckers/gzdoom 2019-01-13 13:40:29 +01:00
Christoph Oelckers
7b61965197 Merge branch 'master' of https://github.com/coelckers/gzdoom
# Conflicts:
#	src/dthinker.cpp
2019-01-13 13:40:13 +01:00
alexey.lysiuk
1687bd3ef3 - fixed incorrect prologue macro for Actor.isFrozen() 2019-01-13 14:39:44 +02:00
Christoph Oelckers
42b57c995a - rework of thinker creation so that it can get the level from the passed parameters.
Internally it is still one global list of thinkers, this only changes the creation code.
2019-01-13 13:39:14 +01:00
alexey.lysiuk
d3eb983dd3 - fixed loading of saved game
Wrong FName constructor was picked for name of map snapshot, it was not restored because of that
2019-01-13 12:24:17 +02:00
alexey.lysiuk
2bb3571c2c - fixed crash during initialization of polyobjects 2019-01-13 10:35:00 +02:00
alexey.lysiuk
16ee57817d - fixed crash with stored commands on startup
Example: +map CCMD in command line options
2019-01-13 10:34:17 +02:00
alexey.lysiuk
c1a4158ab0 - fixed compilation errors
src/scripting/decorate/thingdef_parse.cpp:80:11: error: no viable conversion from 'const FName' to 'FString'
src/scripting/zscript/zcc_compile.cpp:1359:26: error: use of undeclared identifier 'Name_globalfreeze'; did you mean 'NAME_globalfreeze'?
2019-01-12 18:29:31 +02:00
Christoph Oelckers
ed14951558 - ensure proper emission of deprecations.
For global variables this wasn't implemented.
2019-01-12 16:36:21 +01:00
Christoph Oelckers
36f79ea363 - added some compatibility glue for old scripts that reference the global 'globalfreeze' and 'level' variables. 2019-01-12 14:29:13 +01:00
Christoph Oelckers
1ab4ebb7ac Merge branch 'g_level_reworking' 2019-01-12 14:04:40 +01:00
Christoph Oelckers
9099dc600f - fixed the 'frozen level' handling and did some cleanup on the session data in savegames.
The handling for the two frozen flags was totally inconsistent.
Furthermore, these need to be session data, not level data.
The old exported variables for this still exist and shadow the real state, but are deprecated now.
Frozen state should only be checked with "currentSession.isFrozen()" now.

The session data in the savegame was grouped and separated from the global state, which onl consists of server CVARs and RNG state now.
2019-01-12 13:50:15 +01:00
alexey.lysiuk
b7adc4065d - fixed condition to produce blood splatter during line attack
https://forum.zdoom.org/viewtopic.php?t=63186
2019-01-12 13:11:03 +02:00
alexey.lysiuk
e353201919 - relaxed caller type check for states modified by Dehacked
https://forum.zdoom.org/viewtopic.php?t=63178
2019-01-12 12:21:34 +02:00
Christoph Oelckers
9f1aedd135 - place automap marker and scale variables in the level so that saving and restoring works properly without affecting other maps by leaving behind residual data. 2019-01-12 00:53:58 +01:00