summaryrefslogtreecommitdiff
path: root/src/strife/p_switch.c
AgeCommit message (Collapse)Author
2014-10-26Rogue fixed DOOM bug regarding switch sound originsJames Haley
Re-examination of assembly reveals use of &line->frontsector->soundorg instead of buttonlist->soundorg.
2014-09-13Add vld_ prefix for vldoor_e enum values.Simon Howard
It was pointed out to me recently that vldoor_e has enum values named 'open' and 'close'. These can potentially conflict with POSIX standard functions that have the same names, if the right header files are included. This doesn't currently cause any problems. However, to avoid any possibility of a conflict occurring if a different compiler is used, add a vld_ prefix to all the enum values, to namespace them.
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-03-29strife: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2011-02-23Removed all dead code containing P_Random calls to avoid false hits inJames Haley
list, removed all remaining order-of-evaluation portability problems, and heavily altered behavior of T_FireFlicker thinkers to match the binary (had no clue they changed this previously!). Subversion-branch: /branches/strife-branch Subversion-revision: 2274
2011-02-05Documented most of the questflags. Misc fixes: Removed "is turbo!"James Haley
message, PST_REBORN set in G_DoLoadLevel if players.health <= 0, M_ClearRandom doesn't seed rndindex with time(), A_Chase doesn't check for target->health <= 0 when decrementing actor->threshold, and A_AcolyteSpecial fixed - ALL blue acolytes must be dead, not just one. Subversion-branch: /branches/strife-branch Subversion-revision: 2248
2010-09-27Code for line types 196 and 212 (thought I committed that already o_O),James Haley
and code to transfer leveltime across map changes in G_DoWorldDone. Subversion-branch: /branches/strife-branch Subversion-revision: 2144
2010-09-26Identified quest #7 (killed Blue Acolytes), fixed a bug in P_SpawnMobjJames Haley
(Strife doesn't withhold mobj->reactioncount in skill 5), added static line specials 142, 143, and 149 for vertical texture scrolling, and made note of a bug with Irale's door line type. Subversion-branch: /branches/strife-branch Subversion-revision: 2142
2010-09-25ALL line types implemented in P_UseSpecialLine!James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2139
2010-09-25+ Plats finishedSamuel Villareal
+ All plat line types identified Subversion-branch: /branches/strife-branch Subversion-revision: 2136
2010-09-24Added buildDown16 stairs to EV_BuildStairs, and implemented all new S/WJames Haley
stair types. Also added a few other new lines to P_UseSpecialLine and fixed some of the existing ones a bit. Subversion-branch: /branches/strife-branch Subversion-revision: 2135
2010-09-24Started work on P_UseSpecialLine cuz I was bored.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2134
2010-09-22Fixed firing of missiles when looking up/down so that the aimslopeJames Haley
calculated in P_AimLineAttack is used. Added W1 handling for linetype 182 to P_CrossSpecialLine, which lets missiles break windows. Corrected numerous mistakes in the implementation of P_ChangeSwitchTexture. Subversion-branch: /branches/strife-branch Subversion-revision: 2128
2010-09-19+ Line types 194 and 211 addedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2121
2010-09-19+ Several more line types addedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2120
2010-09-19+ Fixed a minor fluke with type 165 in EV_VerticalDoorSamuel Villareal
+ Types 165 and 205 supported in P_UseSpecialLine Subversion-branch: /branches/strife-branch Subversion-revision: 2119
2010-09-18Tons of warnings fixed - now only 7 warnings at warning level 3, andJames Haley
most of those are outside of our own code (get on those signed/unsigned mismatches in the midi code, fraggle ;) Subversion-branch: /branches/strife-branch Subversion-revision: 2110
2010-09-16Had to majorly deconflict p_doors.c; kept my version of lock switch inJames Haley
EV_VerticalDoor because it had all the types present and no errors such as missing parentheses. Please tell me next time if you're going to start working on the same thing I am doing, as I don't like wasting my entire evening. Subversion-branch: /branches/strife-branch Subversion-revision: 2093
2010-09-15+ EV_DoDoor updatedSamuel Villareal
+ New door types added to enum + T_VerticalDoor updated + Split Door mechanic implemented + Linetypes 40, 174, 183 implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2088
2010-09-14+ P_FindSlidingDoorType fixed where it was returning a null slidetypeSamuel Villareal
+ EV_SlideDoor updated + Linetypes 207 (RemoteSlideDoor) and linetype 229 (Sigil SlideDoor) added + T_MovePlane updated Subversion-branch: /branches/strife-branch Subversion-revision: 2085
2010-09-14+ Sliding door implementationSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2084
2010-09-13Started finale slideshow stuff, added/tweaked quest flags, and did someJames Haley
elimination of tabs in altered functions. Also refactored a few strings to use DEH_String. Subversion-branch: /branches/strife-branch Subversion-revision: 2082
2010-09-13+ stonecold/workparm variables addedSamuel Villareal
+ quest enum added + P_damagemobj partially done + P_SpawnPlayer/G_PlayerReborn updated Subversion-branch: /branches/strife-branch Subversion-revision: 2079
2010-09-12+ Fixed flag clearing issue in P_ChangeSwitchTextureSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2070
2010-09-12+ externalized isregisteredSamuel Villareal
+ Swapped out gamemode with isregistered check in P_InitSwitches Subversion-branch: /branches/strife-branch Subversion-revision: 2068
2010-09-10+ Fixed a minor fluke in P_ChangeSwitchTextureSamuel Villareal
+ R_SoundNumForDoor implemented + opensound/closesound variables added to vldoor_t struct Subversion-branch: /branches/strife-branch Subversion-revision: 2053
2010-09-09+ Broken glass implementationSamuel Villareal
+ All switches implemented + Switch structure updated + Linetype 182 implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2050
2010-08-31+ Strife music/sound implementedSamuel Villareal
+ All doom sound references replaced with sfx_swish as placeholder + Removed all but MT_PLAYER mobjinfo in mobjinfo struct Subversion-branch: /branches/strife-branch Subversion-revision: 1980
2010-08-30+ Change to patch/maptexture data structureSamuel Villareal
+ Disabling all animdefs and switchdefs for now + Setting sky texture to use SKY03 as a placeholder Subversion-branch: /branches/strife-branch Subversion-revision: 1977
2010-08-30Added declaration and definition of menupause variable. Also uncommentedJames Haley
sound play in P_MoveWall since it's a sound that's shared with DOOM :) Subversion-branch: /branches/strife-branch Subversion-revision: 1975
2010-08-30+ Implementation of line type 666 'P_MoveWall'Samuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 1974
2010-08-25Added riftSpots and fleshed out Strife level exit behavior as far asJames Haley
setting of destmap, riftdest, and riftangle (previously unknown variable dword_9F138). Added functions G_RiftExitLevel, G_RiftPlayer, and G_RiftCheat. Removed G_WorldDone and secretexit variable. Subversion-branch: /branches/strife-branch Subversion-revision: 1967
2010-08-24Removed storedemo and Chex Quest cruft, adjusted screenwipe loop timing,James Haley
added DoTimeBomb function for historical interest, removed GS_INTERMISSION and #if 0'd all of wi_stuff.c/.h. Removed DOOM level transfer logic from G_DoCompleted - note that you cannot currently go to the next level at *all*. Removed G_SecretExitLevel and DOOM par times. Subversion-branch: /branches/strife-branch Subversion-revision: 1966
2010-02-01Create strife directory as a copy of doom directory, change Makefile.amSimon Howard
to build libstrife.a rather than libdoom.a, add chocolate-strife to src/Makefile.am. Subversion-branch: /branches/strife-branch Subversion-revision: 1840
2010-02-01Remove improperly-created strife directory.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 1839
2010-02-01Populated src/strife with copy of source files from src/doom - TODOs:James Haley
needs own Makefile.am, and eventual removal of modules not used by Strife / addition of modules not sharable with Doom. Subversion-branch: /branches/strife-branch Subversion-revision: 1838