Commit graph

120 commits

Author SHA1 Message Date
gez
5540b6fefc * Updated to ZDoom r3257:
- Removed some unnecessary r_ header #includes.
- Separated sprite and skin maintenance code from r_things.cpp into a separate file.
- 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.
- Rename src/resources to src/r_data.
- Fixed: p_sectors.cpp wouldn't compile.
- Moved side_t::GetLightLevel out of software rendering code.
- Moved render style and border drawing code out of r_draw.cpp.
- Moved all code not specific to the software renderer out of r_bsp.cpp.
* Adapted GL files to changes.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1222 b0f79afe-0144-0410-b225-9a4edf0717df
2011-07-06 15:39:10 +00:00
Christoph Oelckers
b56ae0cea5 - Update to ZDoom r3242:
Fixed: In gccinlines.h, the alternative for DivScale32 that took idiv's parameter in memory did not mark eax as an early-clobber register, so GCC might decide to pass the memory address in eax, and it would get clobbered by the inline assembly before fetching the value to divide by. But rather than fix it by adding another '&', I have opted to mark it as in/out and do the zeroing outside the inline assembly, so GCC has maximum flexibility for scheduling the code.
    Fixed: D3DFB::Draw3DPart() treated the screen's pitch as if it always equaled the width. Considering this hasn't been guaranteed since before the D3DFB class was even written, this should have never made it in as-is.
    Fixed case of damage type variables.
    Fixed loading of BMF fonts' palettes. Index 0 is always transparent and the stored palette data starts at index 1.
    Changed R_InstallSpriteLump so that it doesn't abort for every seemingly misnamed lump in the sprites namespace. A warning is fully sufficient here.
    Added FDARI's A_Warp submission.
    Added Major Cooke's Death/Paintype submission.
    Added DavidPH's DOHARMSPECIES submission.
    Added DavidPH's PoisonDamageType submission.
    Added DavidPH's submission for allowing a special state on puffs when hitting bleeding actors.
    Added DavidPH's A_AlertMonsters range submission.
    Added DavifPH's submission for allowing THRUGHOST on puffs.
    Added DavifPH's fix for poisoning invulnerable players.
    cleaned up setPointer interface.
    ZDoom part of setPointer/setActivator, submitted by FDARI.
    Added DavidPH's ProjectileKickback submission.
    ZDoom implementation of strcpy, submitted by FDARI.
    Revert r3214, which added some completely useless warnings for GCC. I'm sure there are good reasons even GCC doesn't enable them by default when you use -Wall.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1218 b0f79afe-0144-0410-b225-9a4edf0717df
2011-06-19 17:17:46 +00:00
Christoph Oelckers
da70509e65 - update to ZDoom r3205:
Fixed: The sign in Eternall.wad, map25 on line 2236 rendered at the wrong height because Doom ignored the Y locations of patches drawn on two-sided midtextures and always drew them at the top of the texture. Added a compatibility flag.
    Added FDARI's ACS savestring submission.
    Added optional fullthrustdistance to A_RadiusThrust to specify the distance at which thrust starts diminishing.
    Added r_shadercolormaps cvar. Set it to false to disable shaders for fixed colormap effects (e.g. invulnerability). This should only be necessary for SM1.4 cards with buggy drivers. I doubt the problem is very widespread. The one piece of SM1.4 hardware I obtained specifically for testing purposes has no problems using shaders for these effects.
    Added Gez's A_WolfAttack submission.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1213 b0f79afe-0144-0410-b225-9a4edf0717df
2011-05-13 07:03:52 +00:00
gez
84ef9ea80c * Updated to ZDoom r3198:
- Fixed: P_CheckPosition() should checks all lines contacted by the actor. Stopping once it finds one blocking line will prevent any further lines with specials from activating their specials.
- Add the wad a map is defined in to the output of listmaps.
- Fixed: DDrawFB::Lock() should only act on NeedResRecreate when going from LockCount 0 -> 1.
- Fixed: When DDrawFB::Lock() has to recreate resources, it left the LockCount at 0. This causes problems if something else locks it before it is unlocked, because the second locker will think it is the first. This happens in R_RenderViewToCanvas(). See DDrawFB::PaletteChanged() for the most common reason why Lock() would need to recreate resources.
- Fixed: DDrawFB::CreateSurfacesComplex() had debugging cruft left in that skipped all but the last attempts.
- Fixed logging of video debug info to a file to not multiply define dbg.
- Fixed: Building with NOASM defined no longer worked, because the DrawSlab routines in a.asm conflicted with the ones in r_draw.cpp.
- Colorize missing texture messages.
- 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.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1212 b0f79afe-0144-0410-b225-9a4edf0717df
2011-05-09 07:31:04 +00:00
gez
4395e8e5a0 * Updated to ZDoom r3188:
- Fixed: PIT_CheckLine() always called CheckForPushSpecial() with the front of the line, even if the actor was hitting it from the back.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1209 b0f79afe-0144-0410-b225-9a4edf0717df
2011-04-22 07:25:04 +00:00
gez
26999e7cc2 * Updated to ZDoom r3152:
- Added a function to execute action specials and changed all calls to use this function. This was done to make it easier to check such calls.
- Fixed: Menu mouse navigation didn't work in fullscreen on Linux.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1198 b0f79afe-0144-0410-b225-9a4edf0717df
2011-02-13 20:26:04 +00:00
gez
ced25f823f * Updated to ZDoom r3121:
- Added a 'block sight' line flag.
- Updated UDMF spec for player class and skill amount because the old menu limits no longer apply.
- Fixed: FloorAndCeiling_LowerRaise needs to consider 4 args in maps to account for the Boom compatibility hack parameter.
- Fixed: 3DMidtextures did not work correctly in sectors with slopes.
- Added a check to output a clear error message if no IWAD definitions could be loaded.
- Added fix for timing of the boss cube while a time freezer is active.
- Added cursor support for SDL.
- Let's not be so quick to break savegame compatibility...
- Fixed some incorrect P_CheckSight flag use in p_enemy.cpp.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1183 b0f79afe-0144-0410-b225-9a4edf0717df
2011-01-23 11:55:58 +00:00
gez
f96905a9c2 * Updated to ZDoom r3111:
- Fixed: Spawning things abuve a 3D midtexture did not provess the 'is above midtexture' state properly.
- Fixed: When teleporting an actor the destination must be checked with the new z position, not the old one.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1180 b0f79afe-0144-0410-b225-9a4edf0717df
2011-01-21 10:31:43 +00:00
Christoph Oelckers
9aefd4cddc - Update to ZDoom r3013:
* Added code submission for printing secret information.
    * Added missing TRXTCOLOR_CYAN #define.
    * Changed bridge things to be completely immobile towards sector plane movement. This problem again reared its ugly head in 007LTSD where the oversized bridges got messed up by some opening doors and lowering lifts. Now any plane trying to move such a thing will get blocked. Moving these things by other means still works normally, of course
    * Added some fudging to make sectors that are neighboring a portal plane but share the same texture properties actual parts of the portal. This is only done when portals are defined with portal things. This was necessary to preserve an effect that depended on incomplete checks in the renderer that could not be preserved with the implementation of linedef based portals.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1113 b0f79afe-0144-0410-b225-9a4edf0717df
2010-11-30 08:39:31 +00:00
gez
e0becf97db * Updated to ZDoom r2992:
- Add alpha property to sector_t::splane. Not used yet.
- Add an alpha parameter to R_FindPlane.
- Fixed: R_FindPlane must do a full visplane comparison for stacked sectors with a non-0 alpha for the sector plane.
- Made the alpha used by stacked sectors part of the visplane. This will be needed to fix the merging of stacks with the same displacement but different alpha values.
- Replaced all calls to sqrtf with sqrt. Also changed P_RadiusAttack to use doubles for all floating point calculations.
- Fixed: When playing non-looping songs GMESong::Read could return without releasing the critical section.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1074 b0f79afe-0144-0410-b225-9a4edf0717df
2010-11-07 17:18:15 +00:00
gez
6922d4da45 * Updated to ZDoom r2965:
- Made "follow player" automap option a CVAR and added a menu item for it.
- Added a CVAR to decide when to show the map label (ExMy, MAPxx) on the automap HUD. Available settings are Never, Always and Not for hubs.
- Made all crosshair related CVARs game specific. They were all global to all supportesd games.
- Fixed: When used on non-projectiles A_Explode ignored the HurtSource flag.
- Fixed: The intermission screen was not taking texture scaling into account (it was written before the introduction of scaled texture handling for 2D.)
- Fixed: The GAMEINFO parser did not correctly handle NOSPRITERENAME
- Added STTPRCNT to HUDFONT_DOOM

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1065 b0f79afe-0144-0410-b225-9a4edf0717df
2010-10-24 08:40:22 +00:00
Christoph Oelckers
6e67fe0302 - Fixed the compatibility handler of AAmbientSound::Serialize.
- Fixed: When moving a sector plane P_CheckPosition must do the same anti-overlap checks for monsters like P_Move to avoid monster pile-ups.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@971 b0f79afe-0144-0410-b225-9a4edf0717df
2010-09-16 20:53:41 +00:00
gez
210825b5ec * Updated to ZDoom r2627:
- Fixed: P_LineAttack mixed up two flags variables.
- Added PinkSilver's LOF_NOJUMP submission for A_LookEx.
- Fixed: Clearing a pickup message for inventory items was not possible. Changed it so that "You got a pickup" is AInventory's pickup message and not a default returned when nothing valid is set.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@921 b0f79afe-0144-0410-b225-9a4edf0717df
2010-08-28 22:17:58 +00:00
gez
2934a611c9 * Updated to ZDoom r2601:
- Added: Let the kill CCMD also kill replacements of the monster that is specified.
- Add a GetReplacement method to PClass to clean up some really ugly code
- Who wrote the 'kill' CCMD? The way it checked if two classes were identical was horrendously overcomplicated.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@908 b0f79afe-0144-0410-b225-9a4edf0717df
2010-08-27 08:41:43 +00:00
gez
2306c9896e - Factorized 3D floor plane code into a new function.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@883 b0f79afe-0144-0410-b225-9a4edf0717df
2010-08-11 20:06:29 +00:00
gez
ab92845b8b - Fixed: the dropoff detection code needs to be aware of extra floors.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@882 b0f79afe-0144-0410-b225-9a4edf0717df
2010-08-11 18:26:12 +00:00
Christoph Oelckers
0970747641 - fixed: The checks for doing poison damage were not correct.
- fixed: Poisoner was not declared as pointer.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@860 b0f79afe-0144-0410-b225-9a4edf0717df
2010-07-29 06:57:50 +00:00
gez
0a35f861ce * Updated to ZDoom r2456:
- Added DavidPH's code submission: explicit angle for A_CustomBulletAttack function, A_Saw extension, A_RailAttack extension, and A_JumpIfTargetInLOS extension.
- added PinkSilver's APROP_MasterTid submission.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@850 b0f79afe-0144-0410-b225-9a4edf0717df
2010-07-24 09:26:26 +00:00
gez
5c0247886e * Added missing po_man.h.
* Updated to ZDoom r2450:
- Added DavidPH's Poison damage extension but changed it so that the metadata can be removed.
- Added Firebrand's patch to rename 'swap' due to naming conflicts in newer MSVC compilers.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@848 b0f79afe-0144-0410-b225-9a4edf0717df
2010-07-23 22:01:12 +00:00
gez
f7e60ec995 * Updated to ZDoom r2391:
- Remove fakedblocker, since it was unused.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@828 b0f79afe-0144-0410-b225-9a4edf0717df
2010-06-27 21:09:25 +00:00
gez
46bdcdb47d * Updated to ZDoom r2373:
- Fixed: All melee attack functions only used the target acquired by P_AimLineAttack for all subsequent calculations, not the actual victim of the attack. 
- Set +NEVERRESPAWN flag for several Strife monsters that should not respawn in Bloodbath skill.
- Fixed: Setting +NOCLIP for a player class did not work.
- Fixed: A_Print and related functions should not make a use state chain succeed.
- Fixed: APowerIronFeet must continuously reset the player's air supply.
- Fixed: Stopping music did not clear the variable used to restart the last played song.
- Fixed: Classes inherited from PowerScanner didn't work anymore.
- Added some options to A_CustomPunch, including calling Strife's dagger alert function.
- Added support for Risen3D/PrBoom+'s MUSINFO lump.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@816 b0f79afe-0144-0410-b225-9a4edf0717df
2010-06-13 13:33:27 +00:00
gez
5e0e4aef22 * Updated to ZDoom r2350:
- fixed: Poison clouds spawned by the PoisonShroom should not be pushable by the Disc of Repulsion.
- Added support for DRO version 2 files.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@810 b0f79afe-0144-0410-b225-9a4edf0717df
2010-05-30 23:41:36 +00:00
gez
08ebe42674 * Updated to ZDoom r2342:
- fixed: Heretic's 666 lower floor must be of type LowerToHighest unlike Doom which is LowerToLowest.
- 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.
- added a Boom (strict) compatibility mode.
- Restored some original Doom behavior that received complaints from users:
* reactivated the old sliding against diagonal walls code and compatibility optioned it with COMPATF_WALLRUN.
* re-added the original hitscan checking code using a cross-section of the actor instead of the bounding box, compatibility optioned with COMPATF_HITSCAN.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@804 b0f79afe-0144-0410-b225-9a4edf0717df
2010-05-28 23:10:08 +00:00
gez
910e9fd447 * Updated to ZDoom r2337:
- Changed AActor::GetTag() to use language lookups for strings that start with $.
- Fixed: Animated doors should only leave ML_BLOCKING set if the door was created with it set. Otherwise, monsters will be unable to open it after it has been used once if it isn't set for push activation.
- Response file improvements:
  * Fixed: Trying to use a response file would result in infinite looping until memory was exhausted.
  * Fixed: Response files were read after coalescing file parameters, which would lead to non-coalesced parameters if the original command line and response file both had them.
  * You can now use more than one response file.
  * Response files can include other response files.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@801 b0f79afe-0144-0410-b225-9a4edf0717df
2010-05-25 07:28:51 +00:00
gez
fdfcc89567 * Updated to ZDoom r2302:
- Added a new 'playeruseback' linedef trigger type that allows using lines from the back side.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@784 b0f79afe-0144-0410-b225-9a4edf0717df
2010-04-25 08:22:26 +00:00
Christoph Oelckers
1aea448d05 - Fixed: It was no longer possible to talk to non-shootable NPCs. Also took
the opportunity to merge the various boolean parameters to P_AimLineAttack into one flag parameter.



git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@759 b0f79afe-0144-0410-b225-9a4edf0717df
2010-03-28 10:52:09 +00:00
Christoph Oelckers
298f0d2e80 Update to ZDoom r2249:
- fixed: Explosions directly under a water surface would not hurt any actor directly above this surface.
- cleaned up P_CheckSight flag handling.
- Use normal texture animation for the main menu cursors. This required updating animations
  all the time and not just when inside a level.
- fixed: IDBEHOLD altered the item counter.
- fixed: P_SpawnMapThing always reduced the angular precision to 45 degrees.
- removed AngleIncrements because it's not really useful.
- fixed: Level redirection checked the wrong level.
- Fixed: ClearActorInventory used the wrong stack index to get its parameter.
- P_ZMovement() temporarily disables jumping after a landing. Don't do this if the jump
  timer is already running or for short falls (e.g. along the edges of slopes, since the
  slope floorz calculation is pretty crappy.)
- Keep all damage factors in the table, even those that are 1.0.
- 256 is a valid pain chance, so clamp to that, not 255.
- Fixed: TMap::DelKey failed if the key's main position was nil, because it tried checking
  for it at the "next" position, which is an invalid pointer in that case.
- Changed A_SetUserVar and A_SetUserArray so they affect the actor that called it, which
  is not necessarily "self". The only visible change from this should be that inventory items
  now set their own variables and not their owners'.
- added a CrushPainSound actor property for Strife.
- fixed memory leaks in SBARINFO and WAD loading code.
- added GetBloodColor and GetBloodType inline functions to AActor to wrap the GetMeta calls used for this.



git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@756 b0f79afe-0144-0410-b225-9a4edf0717df
2010-03-27 07:46:42 +00:00
Christoph Oelckers
95f2bb538d - Fixed: Voodoo dolls must not check reactiontime in P_SlideMove.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@741 b0f79afe-0144-0410-b225-9a4edf0717df
2010-02-11 17:10:12 +00:00
Christoph Oelckers
e47966c1f8 Update to ZDoom r2150:
- Fixed: Closing doors early would never restart the sound sequence if it was manually placed.
- Fixed: "Animation <X> in ANIMATED has only one frame" message was missing a newline.
- fixed positioning of player mugshot background on Doom status bar.
- 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.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@739 b0f79afe-0144-0410-b225-9a4edf0717df
2010-02-03 12:55:21 +00:00
Christoph Oelckers
e96944df13 Update to ZDoom r 2145:
- fixed: Rocket trail particle positioning only worked when the rocket was moving.
- fixed: Sector_SetWind and Sector_SetCurrent were not usable in scripts called from a line.
- added Gez's A_Mushroom extension.
- added a minimum threshold for damage thrust to avoid micro-velocities being set for actors.
- fixed: Strife's Oracle is not a living thing and needs the NOBLOOD flag.
- fixed: Chex Quest's finale pic was wrong.
- fixed: Being resurrected by an Arch Vile did not restore flags5 and flags6 to the defaults.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@738 b0f79afe-0144-0410-b225-9a4edf0717df
2010-01-30 14:54:56 +00:00
Christoph Oelckers
3d55375a01 - fixed: The sound table could not be reallocated because the low level sound data referenced its contents by pointer.
Update to ZDoom r2113:

    * Added full stops to more Strife messages.
    * Change StrifePlayer's RunHealth to 15.
    * Fixed: DORWS04 should not make a sound when it switches off.
    * Fixed copy-paste fail for DoorCloseSmallWood.
    * I guess I can't completely trust Strife1.exe's switch list. Not everything that plays the glass break sound is actually defined with it.
    * Fixed: The MAPINFO keyword resetinventory only worked when traveling to a redirected map.
    * Fixed: Two Strife pickup messages were off by one character each.
    * Fixed: Macil2 and the Oracle need to be immune to SpectralLightningV2 as well as V1, since they are both created by the first-stage Sigil. AlienSpectre3 should have also been immune to them but was not. In addition, Macil1 was erroneously immune to V1, when he should not be immune to any spectral damage. (Though, since he's immortal, all that really amounts to is that he can enter his pain state.)
    * Fixed: Don't color the teleporter beacon's rebels in single player.
    * Fixed: I forgot to reimplement the number keys for Strife's dialogues when I redid the menus to work with controllers.
    * Split conversation initiation out of P_UseTraverse() and into a separate function. It no longer piggy-backs off of Hexen's puzzle item traversal but instead works like Strife, using P_AimLineAttack() to find something to talk to and includes some slight left and right "autoaim". I can think of a few consequences of this:
          o Using puzzle items on actors has been restored to its original range of 64.
          o Since talking now depends on P_AimLineAttack() instead of a line use traversal, you can probably set up situations where you can talk to somebody that you couldn't talk to before because some special line was in the way.
          o You don't need to stick a guard flush against the wall to block players from using a switch behind them, because now the autoaim will get the player.
    * Corrected several Strife switches that had the wrong sounds.
    * Fixed: Action Doom 2 and Harmony IWADs were missing the GI_MAPxx flag.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@716 b0f79afe-0144-0410-b225-9a4edf0717df
2010-01-16 07:38:12 +00:00
Christoph Oelckers
4df6f92af2 - Fixed a design flaw in the thinker system:
Having every single actor default to the highest available statnum means that 
  nothing can be placed in a slot where it is guaranteed to be run after all actors 
  have ticked. But this is required for any thinker that moves an actor 
  (i.e. AActorMover and DSectorEffect.) With DSectorEffect it just went unnoticed 
  because they were added at the end of the list so almost nothing they moved was
  behind them in a thinker list. However, when an actor was spawned on a moving 
  floor it did not move smoothly. The default statnum is now 100 so that there's 
  sufficient slots above where such thinkers can be placed.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@691 b0f79afe-0144-0410-b225-9a4edf0717df
2009-12-30 19:02:20 +00:00
Christoph Oelckers
7c30ee567f Update to ZDoom r2059:
- fixed: Movement performed by actor movers was not interpolated because
  it happened outside the moved actor's Tick function. This got particularly
  obvious with moving skybox viewpoints (See Daedalus's MAP21 intro for a good
  example.)


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@689 b0f79afe-0144-0410-b225-9a4edf0717df
2009-12-30 12:24:00 +00:00
Christoph Oelckers
f531ae17a9 Update to ZDoom r2027:
- Fixed: Morphed players tried endlessly to switch to a weapon they picked up.
- fixed: P_DamageMobj just set an ice corpse's velocity to 0 to make it shatter.
  But that's insufficient because it doesn't factor in any subsequent velocity
  change that happens between the damaging and the next call to A_FreezeDeathChunks.
- fixed: The TimeFreezer did not freeze other players' controls in a
  multiplayer game.
- fixed: DECORATE's 'gravity' property incorrectly messed around with the
  NOGRAVITY flag.
- fixed: Hitscan attacks didn't check the puff's replacement for damage types.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@661 b0f79afe-0144-0410-b225-9a4edf0717df
2009-12-17 14:16:00 +00:00
Christoph Oelckers
0b978c341b - added some code that prevents overlapping monsters from getting stuck in
each other. PIT_CheckThing will return true under the following contitions 
  now:
  * It was called from P_Move
  * The actor that is blocking the move already overlaps with the monster
    that is being moved.
  * the move will take the 2 actors further apart.  


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@651 b0f79afe-0144-0410-b225-9a4edf0717df
2009-12-06 22:12:34 +00:00
Christoph Oelckers
964d7d4c8a - Update to ZDoom r2002:
- Make the palette indexes used by FRemapTable subject to the global remap
  table, just as the images they translate are.
- Added MF4_ALLOWPARTICLES checks to blood spawning code.
- Fixed: EV_DoDonut, EV_DoElevator and EV_StartWaggle did not to any 0-tag
  checks.
- Fixed: Doom line type 44 (lower ceiling to 8 above floor) must halt
  movement if blocked which essentially means it acts like a Hexen-style
  crusher.
- Fixed: Not all places checking for player start spots did it correctly.
  The editor number for player start spot 5 is now stored in the game info
  so that there's only one place where this check needs to be done.
- Fixed: WIF_NOAUTOAIM only worked for projectiles.
- Added Windows 7 (aka Windows NT 6.1) and Server 2008 identification to
  I_DetectOS().
- Fixed: ArtiPork did not use all its sprite frames.
- Fixed: FWadCollection::AddFile() did not call FixPathSeperator(), so
  savegames would hold the full file path for wads that had been specified
  with backslash characters, because GetWadName() would not trim off the
  path.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@636 b0f79afe-0144-0410-b225-9a4edf0717df
2009-11-26 23:03:27 +00:00
Christoph Oelckers
9b4f7c5ea7 Update to ZDoom r1986:
- fixed: P_NowayTraverse was called with a trace distance of 128 instead of
  the 64 that should have been used.
- reverted the change that makes 0-damage projectiles call P_DamageMobj.
  Both Hexen and Heretic depend on such projectiles not doing it as do many
  mods that create snow/rain effects plus any terrain splash mod.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@627 b0f79afe-0144-0410-b225-9a4edf0717df
2009-11-17 23:24:59 +00:00
Christoph Oelckers
8543602063 - Update to ZDoom r1966:
- Fixed: R_GetOneSkyColumn() and R_GetTwoSkyColumns are mulscaling an
  unsigned integer that can use all 32 bits. They must therefore use
  the unsigned mul instruction rather than the signed imul instruction.
- Fixed several signed/unsigned comparison and possibly uninitialized
  variable warnings flagged by GCC.



git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@615 b0f79afe-0144-0410-b225-9a4edf0717df
2009-11-08 06:53:15 +00:00
Christoph Oelckers
9e2ef91806 Update to ZDoom r1947:
- Added Gez's patch for IWAD detection of Blasphemer and Action Doom 2.
- Fixed: 0 damage projectiles did not call P_DamageMobj.
- Fixed: Do not exit P_DamageMobj early if damage is 0, so we can still get
  the side effects from it. PainThreshold also needs to be inclusive, as
  the docs already state.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@583 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-29 06:43:20 +00:00
Christoph Oelckers
83bc5817e1 - fixed: Calculating sector heights with transparent door hacks was wrong.
- fixed: Sector height was wrong for sectors that have a slope transfer for
  a horizontal plane.
- better error reporting for shader compile errors.


Update to ZDoom r1942:

- Changes to both A_MonsterRail() and A_CustomRailgun(): Save actor's pitch,
  use a larger aiming range, ignore non-targets in P_AimLineAttack(), and
  aim at the target anyway even if P_AimLineAttack() decides it has no
  chance of hitting.
- Added another parameter to P_AimLineAttack(): A target to be aimed at. If
  this is non-NULL, then all actors between the shooter and the target will
  be ignored.
- Added new sound sequence ACS functions:
    SoundSequenceOnActor(int tid, string seqname);
    SoundSequenceOnSector(int tag, string seqname, int location);
    SoundSequenceOnPolyobj(int polynum, string seqname);
  SoundSequenceOnSector takes an extra parameter that specifies where in the
  sector the sound comes from (floor, ceiling, interior, or all of it). See
  the SECSEQ defines in zdefs.acs.
- Fixed: R_RenderDecal() must save various Wall globals, because the originals
  may still be needed. In particular, when drawing a seg with a midtexture is
  split by foreground geometry, the first drawseg generated from it will have
  the correct WallSZ1,2 values, but subsequent ones will have whatever
  R_RenderDecal() left behind. These values are used to calculate the upper
  and lower bounds of the midtexture. (Ironically, my work to Build-ify things
  had done away with these globals, but that's gone now.)


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@581 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-28 20:14:24 +00:00
Christoph Oelckers
4799da28a3 - fixed damage calculation for OLDRADIUSDMG case of P_RadiusAttack.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@580 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-25 23:12:49 +00:00
Christoph Oelckers
daf0e06890 Update to ZDoom r1921:
- added 'defaultterrain' option to terrain parser for mods that want to have
  a different default terrain than a generic solid surface.
- added format char processing to A_Print(Bold) and all printable messages
  that can be defined in DECORATE.
- Fixed: The railgun code ignored MF3_ALWAYSPUFF.
- added desaturated translations.
- added optional state parameters to A_ReFire and A_GunFlash and A_CountdownArg.
- added ACS CheckActorClass function
- fixed: When a blasted actor collided with another one this other actor's
  DONTBLAST flag was not checked.
- added a global DamageFactor actor property. All damage this actor takes is multiplied
  by this factor in addition to damage type specific damage factors.
- added better earthquake functions for ACS and DECORATE.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@549 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-16 16:17:24 +00:00
Christoph Oelckers
8268f773b1 Update to ZDoom r1909:
- Added MF6_NOTRIGGER flag that disables all line actions for an actor.

Also added the missing wadsrc files for last update.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@541 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-11 20:05:18 +00:00
Christoph Oelckers
979e4bd083 - Added MF6_NOTRIGGER flag that disables all line actions for an actor.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@540 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-10 13:11:13 +00:00
Christoph Oelckers
33a4058533 Update to ZDoom r1905:
- Added Gez's seeker missile submission.
- Added Gez's thing activation submission.
- added a NULL pointer check to fog spawning in unmorphing code.
- fixed: frozen corpses need to be treated as solid by z-movement code.
- fixed: AAmbientSound::Serialize was adjusting its timer value for savegames
  even when it was set to a 'don't check' value.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@539 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-10 11:37:36 +00:00
Christoph Oelckers
947148c6d7 - Update to ZDoom r1991:
- Fixed some GCC warnings.
- fixed: The BossCube could be blocked by floors and ceiling resulting
  in incorrect movement. I changed it so that A_BrainSpit now sets the
  MF5_NOINTERACTION flag for anything it spawns that has the MF_NOCLIP
  flag. For travelling cubes active collision detection makes no sense
  and only causes problems. This should also make the boss brain
  work in the other games which previously were excluded by a game mode
  check in the movement code.
- fixed: ACS's GetUserVariable did not work for the script activator.
- fixed: Moving floors could be blocked by 2 actors without MF2_PASSMOBJ
  overlapping each other (common mapping bug, check Herian 2 MAP30.)



git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@507 b0f79afe-0144-0410-b225-9a4edf0717df
2009-10-01 21:04:23 +00:00
Christoph Oelckers
57ec0763dd - Update to ZDoom r1837:
- added PinkSilver's A_Respawn enhancement patch.
- added RandomSpawner update from Gez's experimental build.
- added thing activation types for BUMPSPECIAL and USESPECIAL. Also added
  a new ClearSpecial flag to the activation type.
- added MBF's code for dogs jumping down, controlled by the MF6_JUMPDOWN
  flag.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@457 b0f79afe-0144-0410-b225-9a4edf0717df
2009-09-15 22:09:18 +00:00
Christoph Oelckers
22ec6e8f71 - ZDoom r1833.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@453 b0f79afe-0144-0410-b225-9a4edf0717df
2009-09-15 06:39:32 +00:00
Christoph Oelckers
2352d102e9 Update to ZDoom r1831:
fixed: The Dehacked flags parser fix from May 31 (r1624) was undone by
  yesterday's additions. Changed it so that the parser first checks for 
  the presence of a '-' sign before deciding whether to use strtol or
  strtoul to convert the string into a number.
- Added PinkSilver's A_LookEx fix.
- added resources needed for MBF support.
- removed unused score items from DECORATE file.
- Fixed: Argument count for UsePuzzleItem was wrong.
- Added a few things from Gez's experimental build:
  * MBF Dehacked emulation but removed the COMPATF_MBFDEHACKED flag because
    it wouldn't work and is more or less useless anyway.
  * MBF's dog (definition only, no sprites yet.)
  * User variables. There's an array of 10. They can be set and checked in
    both DECORATE and ACS.
  * Made the tag name changeable but eliminated the redundancy of having
    both the meta property and the individual actor's one. Having one is
	fully sufficient. TO BE FIXED: Names are case insensitive but this
	should better be case sensitive. Unfortunately there's currently nothing
	better than FName to store a string inside an actor without severely
	complicating matters. Also bumped savegame version to avoid problems
	with this change.
  * MBF grenade and bouncing code.
  * several compatibility options.
  * info CCMD to print extended actor information (not fully implemented yet)
  * summonmbf CCMD.
  * Beta BFG code pointer (but not the related missiles yet.)
  * PowerInvisibility enhancements.
  * ScoreItem with one significant change: Added a score variable that can be
    checked through ACS and DECORATE. The engine itself will do nothing with it.
  * Nailgun option for A_Explode.
  * A_PrintBold and A_Log.
  * A_SetSpecial.
  * Beta Lost Soul (added DoomEdNum 9037 to it)
  * A_Mushroom extensions
  * Vavoom compatible MAPINFO keynames.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@452 b0f79afe-0144-0410-b225-9a4edf0717df
2009-09-15 06:19:39 +00:00
Christoph Oelckers
44fcd47cdf - changed line_t's sidenum into sidedef pointers.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@445 b0f79afe-0144-0410-b225-9a4edf0717df
2009-09-06 21:11:24 +00:00