Christoph Oelckers
2bcdf1e87c
- fixed: ScriptUtil.PlayerAmmo must be declared static.
2019-01-23 17:31:37 +01:00
Rachael Alexanderson
20c619d0a6
- remove vid_hwgamma, force always use shader gamma
...
*** note to drfrag: Please don't cherry-pick this commit. Systems that do not use renderbuffers will still need this feature!
2019-01-23 11:08:44 +01:00
Christoph Oelckers
61beaeb429
- swapped order of checks for picking up an item.
...
Failure must take precedence over the morph check because this does not return a proper toucher.
2019-01-23 00:14:27 +01:00
Christoph Oelckers
f55d28b602
- fixed armor bonus giving in A_CustomPunch
2019-01-22 00:36:15 +01:00
nashmuhandes
4eea540a30
Move the "time" string in saved game comment into the LANGUAGE lump.
2019-01-21 10:29:34 +02:00
alexey.lysiuk
f32ca94e89
- fixed 'missing interpolation point' warning
2019-01-20 15:57:38 +02:00
alexey.lysiuk
bf51760480
- removed erroneous native keyword for LevelLocals.RemoveAllBots()
2019-01-20 15:56:58 +02:00
Christoph Oelckers
b96dd1f94e
- substitute LevelLocals with Level in all member function calls.
...
This is to remap static calls to a few functions to use the current level if available and the deprecated global variable if not.
2019-01-20 13:00:39 +01:00
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
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
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
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
Christoph Oelckers
fe7112188a
- fixed: Strife was missing the move factors.
2019-01-11 22:14:30 +01:00
Christoph Oelckers
70ee43a95a
- started cleaning up g_level.cpp.
...
This works up to the point where it tries to apply snapshots, it doesn't start the level yet.
2019-01-11 19:31:56 +01:00
Christoph Oelckers
1b1e2ef7d2
- added a level parameter to the thinker iterator.
...
Not used yet, but will be when the thinker lists are moved into FLevelLocals.
2019-01-11 01:43:43 +01:00
Christoph Oelckers
1c4e3ae06d
- moved the static sky variables into FLevelLocals and removed the redundant ones for the texture ID.
2019-01-11 00:05:07 +01:00
Christoph Oelckers
229dde1e67
- moved the non-map timers out of LevelLocals into GameSession and moved the composite compatibility flags into FLevelLocals, because they are level specific.
2019-01-10 23:08:35 +01:00
Christoph Oelckers
3b59afae31
- some progress.
2019-01-10 21:02:20 +01:00
Christoph Oelckers
f25397b391
- started building the framework to replace the global level variable
...
A few of the old level members will also be moved to the new class, now that workaround getters can be implemented.
These currently spit out some deprecation warnings which will be addressed next.
2019-01-10 19:46:51 +01:00
Marrub
5dbd81ea7f
Make LevelLocals::ExecuteSpecial return int
2019-01-10 17:28:19 +01:00
Christoph Oelckers
ad17bce1f0
- use map time, not hub time for map actions.
2019-01-10 03:42:54 +01:00
Christoph Oelckers
72d09c0338
- the next batch of 'level' removals.
...
Untested, may not work!
2019-01-10 02:30:38 +01:00
Christoph Oelckers
80427b72e9
- made OP_NEW a builtin function instead of an opcode.
...
The code was present 3 times due to the JIt, and this is not something that benefits from being a real opcode, even in the interpreted case.
2019-01-10 02:12:43 +01:00
Christoph Oelckers
2aa9c065ac
- added Level parameter to R/P_PointInSector(Sub)Sector.
2019-01-10 00:30:04 +01:00
Christoph Oelckers
0b2daaf20f
- fixed bad variable name.
2019-01-09 20:48:16 +01:00
Christoph Oelckers
4227b9020c
- moved bglobal.freeze to FLevelLocals, because this flag has nothing specific to do with bots as it freezes the entire level.
2019-01-09 18:59:41 +01:00
Christoph Oelckers
0ed856fbd4
- moved the TIDHash array to FLevelLocals and adjusted the actor iterator code.
2019-01-09 01:42:25 +01:00
Christoph Oelckers
6b9641d673
- moved the tag manager into FLevelLocals.
...
This also involves deprecating the old creation functions because they do not have a proper level context.
2019-01-08 23:39:48 +01:00
Christoph Oelckers
e91971964f
- another large batch of level references removed.
2019-01-08 20:40:43 +01:00
Christoph Oelckers
48fa938b10
- Gave DThinker a Level field and replaced all uses of the placeholer __GetLevel function.
...
Thinkers are always part of a level if they are linked and active, so this reference needs to be kept so that a thinker can unlink itself on destruction.
2019-01-08 01:57:26 +01:00
Christoph Oelckers
8dabd2961d
Merge branch 'master' of https://github.com/coelckers/gzdoom
2019-01-08 01:19:26 +01:00
Christoph Oelckers
f251e341a8
- continued with the 'level' eradication.
2019-01-07 20:50:34 +01:00
Christoph Oelckers
aac7657fb1
- P_Ticker handled
...
It may be a bit tricky to separate per-session and per-level actions here - for now only the sound resuming has been moved because that cannot be done per level.
2019-01-07 17:33:17 +01:00
Christoph Oelckers
1b068a10c6
- fixed last PR.
...
The result of GetPointer must be null checked as well!
2019-01-07 01:09:57 +01:00
Cacodemon345
7c573fe05a
Move receiver NULL check above the orresult check ( #695 )
...
This is to prevent a VM abort from happening here if orresult is false.
2019-01-07 01:04:09 +01:00
Christoph Oelckers
480dd347c9
- removed level references from p_mobj.cpp.
...
This time there was one important exported script function: Actor.Spawn.
Since this will require a level pointer in the new scheme of things the old version had to be deprecated, because it is static with no argument that allows retrieving the level. However, since this is probably one of the most widely used functions I added a workaround to let it continue to work if used from inside an actor class, which should constitute >95% of all uses. This required a little bit of hackery in the compiler backend to swap out the function if appropriate.
Aside from that there were 5 places in the internal ZScript that needed handling, which mostly consisted of making a formerly static internal function non-static.
2019-01-07 00:51:18 +01:00
Christoph Oelckers
7d060dc696
- converted a few more in various files.
2019-01-06 22:10:19 +01:00
Christoph Oelckers
7f3caaf0ff
- portal.cpp is almost free of access to the global level variable.
2019-01-06 17:06:40 +01:00
Christoph Oelckers
9b1870f71f
- capitalization of 'level' in all places where no changes will be needed.
...
Mainly done so that searching for 'level.' returns less noise.
2019-01-06 14:38:51 +01:00
Christoph Oelckers
1aa24eae00
- do not use the global level variable in the status bar.
...
This now gets passed the level each time it is drawn.
2019-01-06 14:29:31 +01:00
Christoph Oelckers
f93eb1ca7f
- removed all level references in p_spec.cpp.
2019-01-06 12:39:52 +01:00
Christoph Oelckers
c651045ed3
- let RunHealth clamping respect the newly added global properties.
2019-01-05 15:37:14 +01:00
Christoph Oelckers
dab68184f5
- moved the global spot state into FLevelLocals.
...
This way it doesn't even have to be a thinker.
2019-01-05 10:04:27 +01:00