Christoph Oelckers
a2c81f1ca9
-fixed the file validity checks in MapData::GetChecksum.
...
They need to be done per lump, because MapData::Seek can alter the FileReader being used for a specific lump. Even worse, the FileReader will be NULL when the function as it was is called for a map inside a Zip-file.
2014-09-12 20:59:23 +02:00
Randy Heit
4cf468452c
Remove slopetype from line_t.
...
- Recomputing it in the only two places where it's used is trivial, so
it's basically a waste of space to precompute it.
2014-07-31 19:15:08 -05:00
Randy Heit
00854dd09e
Don't reopen the reader for encrypted maps
...
- Fixed: Memory leak when loading Blood maps.
2014-07-29 20:42:17 -05:00
Christoph Oelckers
e92032e8ff
- fixed: The map setup code was still truncating texture names in several places.
2014-05-16 22:48:37 +02:00
Christoph Oelckers
a375454474
- removed 8 character limit for map names.
2014-05-14 00:52:16 +02:00
Christoph Oelckers
24886b6734
- removed the last static character arrays from FLevelLocals.
2014-05-13 23:16:13 +02:00
alexey.lysiuk
1c50b5dd6f
Fixed initialization of Hexen-style things
...
Recently added pitch and roll members were not initialized with zeroes when loading Hexen-style maps
At least, hitscan attack can be fired in random direction because of this
2014-04-20 13:37:59 +03:00
Gaerzi
c54f5571ea
Typo.
2014-04-15 17:24:01 +02:00
Gaerzi
6f2fd8edbf
Hexen also needs to init 0 fields.
2014-04-15 17:22:56 +02:00
Gaerzi
8e3360453f
Hexen too.
2014-04-15 17:18:55 +02:00
Gaerzi
e5578934ad
Init new non-0 fields for non-UDMF maps.
2014-04-15 17:16:33 +02:00
Christoph Oelckers
ae49044f96
- let 'showloadtimes' measure UDMF parsing.
2013-12-19 17:59:58 +01:00
Christoph Oelckers
251cdacf26
Merge branch 'master' into scripting
...
Conflicts:
src/g_shared/a_randomspawner.cpp
src/g_strife/a_strifeweapons.cpp
src/thingdef/thingdef_parse.cpp
wadsrc/static/actors/constants.txt
2013-09-03 09:01:28 +02:00
Randy Heit
b0371e1804
Don't abort when merely checking if a non-map is a map
...
- When P_OpenMapData() is called by P_CheckMapData(), we don't actually
care if any required lumps are missing. This just means it isn't a valid
map, so don't abort with I_Error().
2013-08-30 22:38:57 -05:00
Randy Heit
6aee7833d0
Use PField instead of PSymbolVariable for SetMapThingUserData()
2013-08-21 22:51:12 -05:00
Christoph Oelckers
3e4678765b
Merge branch 'master' into scripting
...
Conflicts:
src/actor.h
src/thingdef/thingdef_codeptr.cpp
2013-08-18 12:18:59 +02:00
Christoph Oelckers
0a258f95ea
- added gravity property to UDMF things. Positive values are multiplied with the class's gravity property, negative values are used as their absolute.
2013-08-09 16:25:16 +02:00
Christoph Oelckers
bba092cc0b
Merge branch 'master' into scripting
...
Conflicts:
src/d_player.h
src/g_doom/a_archvile.cpp
src/thingdef/thingdef.h
src/thingdef/thingdef_properties.cpp
2013-08-09 13:03:28 +02:00
Braden Obrzut
bb494292c6
- Fixed P_CheckMapData allowed non-map lump names to pass resulting in a crash when actually trying to load the map.
2013-08-08 23:47:58 -04:00
Randy Heit
459ad5abff
- Updated scripting branch to latest version in trunk.
...
SVN r4337 (scripting)
2013-06-07 03:31:30 +00:00
Braden Obrzut
1d4fbc05a5
- Fixed: glbsp nodes in a wad file inside a pk3 would not be loaded.
...
- Fixed: Typo from r4270.
SVN r4273 (trunk)
2013-05-20 20:39:34 +00:00
Randy Heit
e434ccc3f6
- Add support for user variables on things in UDMF maps. If you include an actor's user variable
...
in its UDMF thing definition, that user variable will be set to the desired value for that
actor when the map is loaded.
SVN r4140 (trunk)
2013-02-17 00:23:58 +00:00
Randy Heit
7714a45e02
- Fixed: Because P_OpenMapData() now reopens the containing file for the map, P_LoadGLNodes() needs a new check for if the map came from a regular wad.
...
SVN r4136 (trunk)
2013-02-14 05:06:05 +00:00
Randy Heit
afabf7e018
- Force node building for garrison.wad from The Master Levels so that the teleporter to the
...
red key won't leave you in the ground.
SVN r4071 (trunk)
2013-02-07 21:32:06 +00:00
Randy Heit
787c338871
- Added MAPINFO flag "SpawnWithWeaponRaised".
...
SVN r4013 (trunk)
2013-01-03 02:08:08 +00:00
Christoph Oelckers
deff47ea18
- fixed: The map loader did not check for the new node formats.
...
SVN r3982 (trunk)
2012-12-07 07:40:41 +00:00
Randy Heit
d77297e969
- Added support for loading ZGL3/XGL3 nodes.
...
- Added additional debug spew for the nodebuilder.
- Restore the nodebuilder's debug spew that was present in ZDBSP but not the internal version.
Use the CRT's printf for this output to ensure that it is identical to ZDBSP's output for the
same input.
SVN r3980 (trunk)
2012-12-07 06:16:07 +00:00
Christoph Oelckers
7aa4c55bfc
- added Gez's patch to fix map checksum calculation.
...
SVN r3970 (trunk)
2012-11-19 00:43:45 +00:00
Braden Obrzut
d393434d56
- Fixed: Broke UDMF in PK3 loader.
...
SVN r3905 (trunk)
2012-10-24 23:49:34 +00:00
Braden Obrzut
b52c3238eb
- Instead of implementing the wad code in three places, use the normal resource code for map loading and GL node loading.
...
SVN r3897 (trunk)
2012-10-22 01:28:11 +00:00
Randy Heit
0c8e4c37d9
- The complete FMapThing is overkill for storing player starts, so use a new minimal structure for them.
...
SVN r3750 (trunk)
2012-07-08 02:18:15 +00:00
Randy Heit
71601f91d1
- Added MAPINFO flag RandomPlayerStarts. In this mode, no voodoo dolls are spawned. Instead, all
...
player starts are added to a pool, and players spawn at a random spot.
SVN r3749 (trunk)
2012-07-08 01:43:47 +00:00
Christoph Oelckers
14730a89be
- changed calculation of soundorg for triangular sectors. In many cases the center of the bounding box won't be inside the sector but on one of the outer lines so something different is needed
...
SVN r3517 (trunk)
2012-04-04 17:33:43 +00:00
Randy Heit
cfd5b84535
- Replace >>MAPBLOCKSHIFT with GetSafeBlockX/GetSafeBlockY from Mocha Doom.
...
SVN r3486 (trunk)
2012-03-28 03:49:38 +00:00
Randy Heit
ac0c1eb64b
- Fixed: If the znodes were based on a map with more vertexes than the one it is being loaded
...
for, reject them.
SVN r3477 (trunk)
2012-03-23 23:04:32 +00:00
Randy Heit
2e9abe7408
- Fixed: When checking the REJECT contents one byte at a time, P_LoadReject() used rejectsize
...
instead of i as an index into rejectmatrix.
SVN r3456 (trunk)
2012-03-20 02:09:48 +00:00
Randy Heit
914ef44c59
- Fixed: In non-UDMF maps, projectile impact activation implies projectile cross activation as well.
...
SVN r3439 (trunk)
2012-03-15 22:57:00 +00:00
Randy Heit
58ed367280
- Fixed: If the first four bytes of the NODES lump are all zero, the nodes would not be loaded,
...
nor would they be generated.
SVN r3423 (trunk)
2012-03-11 03:25:04 +00:00
Randy Heit
472ac1b07c
- Fixed: The nodebuilder is highly likely to renumber vertices, so we need to remember how the
...
original vertices map to the new ones until after vertex slopes are handled.
SVN r3380 (trunk)
2012-02-21 21:52:42 +00:00
Randy Heit
7714ee3ffd
- Fix more errors found with static code analysis.
...
SVN r3288 (trunk)
2011-09-01 22:57:49 +00:00
Christoph Oelckers
ba661308d4
- added GZDoom's option not to count monsters in E1M8-style end of level sectors, but controlled by a dmflag.
...
SVN r3267 (trunk)
2011-07-07 21:55:55 +00:00
Christoph Oelckers
55bb4afac8
- backported GZDoom extensions to renderer interface.
...
SVN r3266 (trunk)
2011-07-07 21:43:49 +00:00
Christoph Oelckers
4ef68ded5d
- fixed some leftover references to the software renderer.
...
SVN r3264 (trunk)
2011-07-07 19:53:42 +00:00
Christoph Oelckers
463c276014
- removed more r_ header dependencies from the rest of the code.
...
SVN r3260 (trunk)
2011-07-06 15:31:05 +00:00
Christoph Oelckers
fbff5ca932
- moved r_interpolate.cpp and r_translate.cpp to r_data.
...
- merged r_jpeg.h into jpegtexture.cpp because that's the only place where it's ever used.
SVN r3255 (trunk)
2011-07-06 08:50:15 +00:00
Christoph Oelckers
5c6fd66ed5
- rename src/resources to src/r_data.
...
SVN r3254 (trunk)
2011-07-06 07:35:36 +00:00
Christoph Oelckers
17ed7aaabd
- moved the code from r_data.cpp to some better fitting places and deleted this file and r_data.h because the remaining parts of it were just a random collection of unrelated functions.
...
SVN r3248 (trunk)
2011-07-05 10:02:38 +00:00
Christoph Oelckers
4626492f50
- separated all colormap related code from v_palette.cpp and r_data.cpp into its own file.
...
SVN r3245 (trunk)
2011-07-03 10:47:35 +00:00
Randy Heit
ee8ca0de87
Fixed: Light levels outside the range [0,255] really do matter.
...
SVN r3223 (trunk)
2011-06-11 23:58:33 +00:00
Randy Heit
37aab20cb3
- Colorize missing texture messages.
...
SVN r3193 (trunk)
2011-05-08 00:35:17 +00:00
Randy Heit
6c70afe0a7
- Place a limit on the number of reports per missing texture. On maps with many lines and many
...
sides of missing textures, this can take a very long time, because each missing textures causes
a scan of every single line (for the sake of packed sidedefs), and each output line also requires
an update of the hidden RichEdit logging control.
SVN r3192 (trunk)
2011-05-08 00:30:32 +00:00
Christoph Oelckers
1993e969b7
- GCC warning fixes (GCC stupidity for the most part.)
...
SVN r3154 (trunk)
2011-02-19 08:59:43 +00:00
Randy Heit
060d740275
- Fixed: Fake floor's validcounts were not initialized.
...
- Fixed: When loading non-UDMF maps, things did not have their conversation field zero'ed.
- Added an assert for the FAKE3D_REFRESHCLIP case at the end of R_RenderMaskedSegRange(), because Valgrind indicates this is being run
without ds->bkup being set to something valid. I do not immediately know how this should be fixed.
SVN r3130 (trunk)
2011-02-02 02:07:36 +00:00
Christoph Oelckers
fae8ed444c
- merged 3dfloors2 branch into trunk.
...
SVN r3124 (trunk)
2011-01-29 11:09:38 +00:00
Christoph Oelckers
5d79cfd303
- fixed: The internal blockmap builder still used 16 bit WORDs to reference linedefs so it failed on USMF maps which exceed this value.
...
SVN r3092 (trunk)
2011-01-09 11:01:04 +00:00
Christoph Oelckers
e33d1a989f
- set all 'num' variables to 0 in P_FreeLevelData so that any code using them won't try to read the deleted map data.
...
SVN r3044 (trunk)
2010-12-15 23:10:08 +00:00
Christoph Oelckers
e7eb43a343
- added Gez's automap patch to mark trigger lines.
...
SVN r3040 (trunk)
2010-12-15 00:14:42 +00:00
Christoph Oelckers
770a879f6a
- fixed: The TouchedActors array in the Dehacked parser was not freed after parsing was done.
...
- Initialize the alt HUD explicitly in D_DoomMain.
- don't let S_UnloadReverbDef leave a broken list of sound environments behind.
- Added more code to explicitly delete data before initializing it.
SVN r3039 (trunk)
2010-12-15 00:09:31 +00:00
Christoph Oelckers
79c5080dda
- added DavidPH's submission for specifying vertex heights directly in UDMF.
...
SVN r3037 (trunk)
2010-12-14 00:56:44 +00:00
Christoph Oelckers
f0f17e531c
- move static AM color initialization into the AM_StaticInit function.
...
- move D_LoadWadSettings to keysections.cpp.
- made some more data reloadable.
- data structures filled by P_SetupLevel should be cleared before loading the level. They can remain non-empty in case of an error. There's probably more to fix here...
- fixed: MidiDevices and MusicAliases were not cleared before reloading local SNDINFOs.
- fixed signed/unsigned warnings in AddSwitchPair for real (GCC really allows -1u? MSVC prints a warning for that.)
SVN r3036 (trunk)
2010-12-14 00:50:02 +00:00
Christoph Oelckers
24ab37613a
- moved switch definitions into texture manager and split all associated code off p_switches.cpp into its own file.
...
SVN r3027 (trunk)
2010-12-11 23:02:46 +00:00
Christoph Oelckers
6309d90be0
- moved texture counting code into FTextureManager.
...
- moved all code and data for Build tile management into FTextureManager.
- moved texture animation management into FTextureManager.
- changed: Animate textures only once per frame, not per view. Otherwise with animations that have sub-frame accuracy camera textures of the same area can show different animation frames if the frame changes falls between the rendering of the different views.
SVN r3026 (trunk)
2010-12-11 12:00:40 +00:00
Christoph Oelckers
5e7753d7e8
- fixed: The floor plane's alpha was not initialized.
...
SVN r3003 (trunk)
2010-11-08 20:18:06 +00:00
Christoph Oelckers
492bead360
- add alpha property to sector_t::splane. Not used yet.
...
SVN r2992 (trunk)
2010-11-07 16:17:14 +00:00
Christoph Oelckers
7dd8a0fce9
- replaced all calls to sqrtf with sqrt. Also changed P_RadiusAttack to use doubles for all floating point calculations.
...
SVN r2989 (trunk)
2010-11-07 14:39:09 +00:00
Christoph Oelckers
3f420c97bd
- allow setting the startup screen's title through GAMEINFO lump.
...
SVN r2850 (trunk)
2010-09-24 14:27:52 +00:00
Christoph Oelckers
610ff3956e
- fixed P_LoopSideDefs could crash on the second P_LoopSidedefs call if there were unconnected linedefs in the map.
...
SVN r2716 (trunk)
2010-09-08 08:53:39 +00:00
Randy Heit
092cbfd55b
- Fixed: When the game nodes were the same as the render nodes, their pointers would not be NULLed.
...
SVN r2676 (trunk)
2010-09-03 02:11:35 +00:00
Randy Heit
d4b03e2b77
-
...
SVN r2629 (trunk)
2010-08-29 03:52:02 +00:00
Christoph Oelckers
ece980d372
- fixed check for GL nodebuild
...
SVN r2613 (trunk)
2010-08-27 17:34:25 +00:00
Christoph Oelckers
3afa8149de
- added a fix from GZDoom to handle levels with compressed sidedefs that were processed by older ZDBSPs.
...
SVN r2612 (trunk)
2010-08-27 16:53:11 +00:00
Christoph Oelckers
9a4abe0915
- merged automap branch into trunk.
...
SVN r2609 (trunk)
2010-08-27 15:20:05 +00:00
Christoph Oelckers
0657121847
- Backport from GZDoom: P_LoopSidedefs() needed another fix as it shouldn't try to report errors found on the second loop.
...
SVN r2544 (trunk)
2010-08-15 14:09:17 +00:00
Braden Obrzut
a0d16bc99a
- Fixed: The center flag for drawimage didn't work.
...
- Fixed: GCC didn't like casting from seg_t* to unsigned int on 64-bit systems.
SVN r2542 (trunk)
2010-08-14 21:01:49 +00:00
Christoph Oelckers
1fda9421ac
Backported from GZDoom:
...
- Fixed: P_LoopSidedefs() needs to clean out sidetemp[] because when it's called a second time, the maximum of the number of vertices and that of sides may have increased compared to when P_AllocateSideDefs() created the array, which led to access violations.
SVN r2541 (trunk)
2010-08-14 20:00:47 +00:00
Randy Heit
c3fa9a54a0
- Fix printf warnings in p_setup.cpp.
...
- Fix buiding on PowerPC.
SVN r2522 (trunk)
2010-08-12 21:28:16 +00:00
Christoph Oelckers
e9c43fe908
- fixed: P_LoopSidedefs must be called again before setting up the polyobjects if the nodes were rebuilt. The original data is no longer valid in case vertexes were merged by the node builder.
...
SVN r2516 (trunk)
2010-08-12 06:43:12 +00:00
Randy Heit
9137ef04f6
- Added "SoundSequence" UDMF sector property. This is the name of the sound sequence to play for
...
the sector. Note that this contrasts with sound sequence things in that it takes a name and
not a number. Also, placing a sound sequence thing in a sector will override this property.
SVN r2492 (trunk)
2010-08-07 04:32:18 +00:00
Randy Heit
58269a18f0
- Use a flood-fill algorithm to define polyobjects with PolyObj_StartLine instead of a simple
...
loop-following algorithm. This fixes the polyobjects in http://www.doomworld.com/idgames/index.php?id=6291
SVN r2482 (trunk)
2010-08-01 05:16:09 +00:00
Randy Heit
677d07f837
- Merge BSP-able polyobjects back into the trunk.
...
SVN r2480 (trunk)
2010-08-01 02:41:56 +00:00
Christoph Oelckers
545a892faa
- added Firebrand's patch to rename 'swap' due to naming conflicts in newer MSVC compilers.
...
SVN r2449 (trunk)
2010-07-23 21:19:59 +00:00
Christoph Oelckers
4ac64b6df7
- merged polyobject branch into trunk and made some adjustments for savegame compatibility.
...
SVN r2448 (trunk)
2010-07-23 05:56:25 +00:00
Christoph Oelckers
cd1104e80c
- changed: Maps with missing first sidedefs no longer abort. THey now print a console warning and use the first sidedef in the map.
...
SVN r2344 (trunk)
2010-05-29 09:11:12 +00:00
Christoph Oelckers
6c4d070095
- restored original Doom behavior for hitscans to only check actors which have their center in the blockmap cells being checked, compatibility optioned by COMPATF_HITSCAN.
...
SVN r2341 (trunk)
2010-05-28 21:07:45 +00:00
Christoph Oelckers
d050973fa4
- added blockmap verification code.
...
SVN r2320 (trunk)
2010-05-12 10:17:08 +00:00
Christoph Oelckers
c85a602546
- allow loading uncompressed version of compressed nodes.
...
- extended FileReader hierarchy so that FileReader, FileReaderZ etc. all inherit from one
base class so that the same code can be used to read from both uncompressed and compressed streams.
SVN r2287 (trunk)
2010-04-17 20:49:18 +00:00
Christoph Oelckers
da99577cbf
- added support for loading DeepBSP's V4 nodes.
...
- disabled writing the nodes with the dumpmap command. ZDoom doesn't need the nodes to load a map and this only worked if the original
map had standard nodes but trying to write out nodes loaded from any other format would have caused broken data.
SVN r2285 (trunk)
2010-04-17 08:53:32 +00:00
Christoph Oelckers
e4d0d6bcdb
- added a Sector_CopyScroller special to allow setting scrollers to sectors with special tags.
...
- extended compatibility text to allow changing line flags and setting line specials on specific linedefs.
- removed Strain MAP07 hack and replaced it by a clean 'clearlineflags' option.
- Added Doomo format translations for Sector_CopyScroller because this looks like something that might be useful for making
some Boom maps work without having to resort to compatibility.txt.
- added a compatibility setting for UAC Ultra MAP07 which exploited some undefined scrolling behavior in Boom.
(What lengths are we going to make sloppily created maps work? This entire commit was just to address this particular problem...)
SVN r2280 (trunk)
2010-04-11 11:18:33 +00:00
Randy Heit
aa86e62693
- Added DefaultEnvironment MAPINFO option to set the default sound environment for the whole map.
...
SVN r2261 (trunk)
2010-03-31 03:48:16 +00:00
Randy Heit
92890066b6
- Fixed: The BUILD map loader did not create extsector information, and it also did not
...
set valid sidedef references for the backs of one-sided lines.
SVN r2218 (trunk)
2010-03-18 02:09:08 +00:00
Randy Heit
054e5411bd
- Fixed: Checking for BUILD maps only worked if they came from unencrypted and
...
uncompressed sources.
SVN r2216 (trunk)
2010-03-18 01:07:50 +00:00
Randy Heit
970cf6f71b
- Fixed endianness assumption when loading external map files.
...
SVN r2215 (trunk)
2010-03-18 00:48:56 +00:00
Christoph Oelckers
4310b239f4
- Added Gez's submission for Eternity-style skybox definitions.
...
SVN r2151 (trunk)
2010-02-06 15:31:26 +00:00
Christoph Oelckers
3e8435e22c
- added Gez's Plane_Copy submission with some extensions and improvements.
...
This line special is the last of the slope creation methods being processed so it can copy any other type of slope.
SVN r2147 (trunk)
2010-01-30 22:53:37 +00:00
Christoph Oelckers
3f140c0549
- fixed: The line ID arg of Plane_Align was not handled in the wrong place. It was also missing from actionspecials.h and the UDMF spec.
...
SVN r2138 (trunk)
2010-01-28 23:46:38 +00:00
Christoph Oelckers
4b64df6778
- fixed: The player setup menu used the main menu's line spacing which
...
for all non-Doom games was too wide.
- fixed: Strife's dialogues cannot use the new options menu code to draw
themselves so now they use a stripped down version of the old code.
- Replaced I_MSTime with I_FPSTime in node builder timing because basetime
will not be initialized yet if a map is started directly from the commandline.
SVN r2096 (trunk)
2010-01-03 10:04:56 +00:00
Randy Heit
56ab0e681d
- Revert revision 2071.
...
SVN r2092 (trunk)
2010-01-03 00:54:34 +00:00
Christoph Oelckers
bf7ed6258b
- fixed: The node builder did not check if all segs could be split properly.
...
Also removed some fudging that tried to work around this case but produced
a broken BSP tree on other maps.
SVN r2071 (trunk)
2010-01-01 11:00:58 +00:00
Christoph Oelckers
4a8518e4f1
- added a 'copy portal' option so that linedef-based portals can be transferred to sectors that already have a tag.
...
SVN r2053 (trunk)
2009-12-28 00:01:07 +00:00
Christoph Oelckers
14a42bbada
- changed line_t's sidenum into sidedef pointers.
...
SVN r1801 (trunk)
2009-09-06 20:45:56 +00:00