Christoph Oelckers
cf7cb4f00f
- use hardware clip planes to split translucent walls and sprites by 3D floor planes.
...
This method has the advantage that it also works for models, xy-billboarded sprites and walls that require complex splitting of the polygon. The old method using actual polygon splitting only works for strictly vertical data that could be trivially split in two.
2015-04-05 19:00:35 +02:00
Christoph Oelckers
45526c2769
- basics for using hardware clip planes to split translucent stuff by 3D floor planes.
2015-04-05 18:55:21 +02:00
Christoph Oelckers
8762ab48d3
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-05 09:47:27 +02:00
Randy Heit
89054f5d60
Use filtering and LOADACS to autoload strfhelp.o
...
- No more special case for STRFHELP in the executable!
2015-04-04 18:40:48 -05:00
Randy Heit
e451faa1cc
Fixed: FString::ReallocBuffer could write to unallocated memory
...
- Previously, calling ReallocBuffer with a smaller buffer size than the
current one could overwrite unallocated memory. This required that the
string it was called on had more than one reference and therefore
required creating a new copy. The entire original string would be
copied, whether it fit in the new buffer or not.
2015-04-04 18:20:05 -05:00
Randy Heit
6da887c34f
Use Truncate to chop off extension in LumpNameSetup.
...
- Left() always creates a new string. Truncate() can reuse the old one if
it only has one reference.
2015-04-04 18:20:05 -05:00
Randy Heit
4315423200
Rename ns_invalid to ns_hidden
...
- Also use ns_hidden by name in LumpNameSetup().
2015-04-04 18:20:04 -05:00
Randy Heit
2103fe2a14
Make FResourceLump::LumpNameSetup's argument an FString
2015-04-04 18:20:03 -05:00
Randy Heit
bbbbb7ac9d
Reorder FMapThing to remove padding
2015-04-04 18:20:03 -05:00
Christoph Oelckers
1fddd1859e
- fixed: FResourceFile::FilterLumps must use a proper copy of the filename to pass to LumpNameSetup instead of a pointer to the file name's stringbuffer, because that function will overwrite the variable it is taken from.
2015-04-05 00:38:29 +02:00
Christoph Oelckers
25e19ab471
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-05 00:31:55 +02:00
Christoph Oelckers
b6a4511dd1
- move conversation ID definition to MAPINFO as well. Uses the newly added filter feature to handle the teaser differences.
2015-04-05 00:31:15 +02:00
rheit
60a0966f0f
Merge pull request #306 from alexey-lysiuk/osx_vid_autoswitch
...
Added control of automatic graphics switching on OS X
2015-04-04 15:41:18 -05:00
Christoph Oelckers
6e45c565a0
- fixed: FResourceLump::LumpNameSetup's iname parameter can point to the FullName variable's stringbuffer so any assignment to that variable must be done indirectly.
2015-04-04 20:52:55 +02:00
Christoph Oelckers
bead3e046b
- fixed weapon positioning again, after finding out that the first fix just worked around the actual problem: The entire coordinate calculation must be done in floating point with no integer math at all. Due to roundoff errors the stored int values needed for wall and flat placement significantly lack precision and with the high scaling factor that needs to be used for weapon HUD sprites these can easily become several pixels. After fixing this the border around sprite textures could be reverted to one pixel again.
...
- fixed: The 'may not be expanded' state should be stored in the texture and reused later. This also needs to revalidate the material if it decides that expansion should be disallowed.
2015-04-04 17:50:22 +02:00
alexey.lysiuk
193b491b63
Added control of automatic graphics switching on OS X
...
Automatic graphics switching is enabled by default
Set vid_autoswitch CVAR to false to disable it
2015-04-04 17:36:55 +03:00
Christoph Oelckers
85ef1a11e9
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-04 14:13:37 +02:00
Christoph Oelckers
87229f4787
Merge branch 'fix_filter_crash' of https://github.com/alexey-lysiuk/gzdoom
2015-04-04 14:12:13 +02:00
Christoph Oelckers
bd96adafda
- cleanup
2015-04-04 14:12:04 +02:00
Christoph Oelckers
91eafed5d3
- fixed coordinate calculations for trimmed sprites which were quite a bit broken.
2015-04-04 13:37:55 +02:00
Christoph Oelckers
67334bfa2b
- calculate weapon positions fully in floating point to avoid roundoff errors.
...
- In order to get reliable results the empty border around scaled sprites must be the same scale as the sprite (i.e. 2 pixels for 2x scale and 4 pixels for 4x scale.)
2015-04-04 12:35:10 +02:00
alexey.lysiuk
8b92c45f84
Fixed crash in lump filtering caused by uninitialized variables
2015-04-04 12:38:37 +03:00
Christoph Oelckers
39b5bcc4f0
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-04 10:38:28 +02:00
Christoph Oelckers
5f2f11a43b
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-04 10:32:23 +02:00
Christoph Oelckers
747e160c96
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-04 10:30:37 +02:00
Christoph Oelckers
51591d10b0
- handle slope things through new definition tables as well. Since these get processed outside P_SpawnMapThing it required some restructuring so that the actual spawn data is present when slope things get processed.
...
- removed FMapThing::Serialize because it isn't used anywhere - it was rather broken anyway.
2015-04-04 10:25:01 +02:00
Randy Heit
7b4d6e2f87
Add lump filtering for archive resources
...
- Multi-directory archives (e.g. zips) now support filtering lumps
depending on the loaded IWAD. The search rules are the same as for the
Autoload entries in the user's ini. For instance, if you are playing
Doom 2, the following filters will be applied:
* "filter/doom2/*"
* "filter/doom/*"
They will be renamed to strip out the "filter/doom2/" and "filter/doom/"
parts and will be ordered so they take precedence over any files not
inside a filter/ directory. Any files inside another filter/ directory
(e.g. "filter/hexen/*") will be ignored.
2015-04-03 22:42:22 -05:00
Randy Heit
fc6f983c13
Fix memory leak when passing directories to -file
2015-04-03 21:50:08 -05:00
Randy Heit
efa82cf38b
Consolidate archive sorting into FResourceFile base class
2015-04-03 20:22:18 -05:00
Randy Heit
966d0b7034
Use FString for FResourceLump::FullName
2015-04-03 20:00:58 -05:00
Christoph Oelckers
2ec8e2c2ac
- moved spawn ID definitions to MAPINFO as well and removed all 'Game' directives from DECORATE because editor and spawn numbers are the only thing that required them.
2015-04-04 00:39:09 +02:00
Christoph Oelckers
4f7ec3ad89
- print proper information about non-actor mapthings.
2015-04-03 22:23:42 +02:00
Christoph Oelckers
9e5bf38123
- handle all special mapthing items (player starts, polyobj spots) via the new MAPINFO method instead of hard coding them in the spawn function.
...
(Note: The buildmap loading code should be adjusted to the new functionality as well eventually.)
2015-04-03 21:17:10 +02:00
Christoph Oelckers
15dbbc9137
- set editor numbers through MAPINFO. The DECORATE way still works ans will override any definition made in MAPINFO.
...
- use a standard TMap for finding editor numbers
2015-04-03 16:51:45 +02:00
Christoph Oelckers
ccd9fb9c23
- moved FDoomEdMap to its own file to make the upcoming changes a bit nicer to handle.
2015-04-03 10:54:55 +02:00
Christoph Oelckers
f0886ce1f1
Merge branch 'master' of https://github.com/rheit/zdoom
...
Conflicts:
src/version.h
2015-04-03 09:45:04 +02:00
Christoph Oelckers
6c603b3c78
Merge branch 'misc_code_improvements' of https://github.com/edward-san/zdoom
2015-04-03 09:33:33 +02:00
Christoph Oelckers
4c06e71536
Merge branch 'dmgforcedfix' of https://github.com/MajorCooke/zdoom
2015-04-03 09:32:46 +02:00
MajorCooke
27c1434585
- Fixed: Buddha never took forced damage into account.
2015-04-02 20:52:51 -05:00
Randy Heit
d37f9cbcae
Add flies (doomed #112 ) from the Hexen retail beta
...
...because it brought back memories of adding Strife support.
- The search function is radically different, but the flying mechanics are
the same.
2015-04-02 17:52:54 -05:00
Edoardo Prezioso
7c7c3fb54e
- Make the 'crashout' CCMD available in non-win32.
2015-04-02 20:14:33 +02:00
Edoardo Prezioso
a88f515364
- Import GAMENAMELOWERCASE macro from Zandronum.
...
This will greatly help reducing the code delta between ZDoom and the child ports.
2015-04-02 13:27:52 +02:00
Edoardo Prezioso
e07f64a23a
- Increase the SDL crashinfo char buffer to 4 KB.
...
This helps the crash catcher when there are numerous wad files, for which it's possible that either the wad list, the map or the position is truncated. A more reliable alternative to this should be allocating the char buffer, but I never heard about a way to do this reliably during signal handling.
2015-04-02 13:19:48 +02:00
Edoardo Prezioso
6c07d765db
- Fixed a wrong linux macro in an ifdef.
2015-04-02 13:18:37 +02:00
Christoph Oelckers
0a16855232
- fixed: The assignment to the 'player' variable in P_DamageMobj occured too late, skipping a few cases.
...
- changed monster unblocking logic to include players as well (i.e. a player being stuck inside another actor is allowed to move away from that other actor.)
2015-04-02 10:05:32 +02:00
MajorCooke
e70aae91e3
- Fixed NODAMAGE not ignoring telefrag damage.
2015-04-01 10:31:47 -05:00
Christoph Oelckers
48e21f6759
- consider MBF sky transfers when checking for skybox precaching.
2015-04-01 12:08:42 +02:00
Christoph Oelckers
bf490d8dcd
Merge branch 'master' of https://github.com/rheit/zdoom
2015-04-01 11:59:57 +02:00
Christoph Oelckers
1e9a6e667e
- GL code adjustments for reworked precaching.
2015-04-01 11:59:41 +02:00
Christoph Oelckers
60d9f38084
Merge branch 'master' of https://github.com/rheit/zdoom
...
Conflicts:
src/v_video.cpp
2015-04-01 11:59:20 +02:00