summaryrefslogtreecommitdiff
path: root/src/strife/st_stuff.c
AgeCommit message (Collapse)Author
2015-05-08warnings: fix "variable ‘..’ set but not used" warningsFabian Greffrath
Fixed by commenting out the reported variables and their settings instead of removing them. Since I am not sure if they were added by mistake or by purpose and then overseen, I think it's better to keep them in the code but not compile them in for now.
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-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2014-03-30strife: Eliminate use of sprintf().Simon Howard
Use snprintf() in place of sprintf(). This is part of fixing #371.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2013-10-31* Fix problem that crashes netdemos in ST_DrawerJames Haley
* Made attribution comment date formats consistent in st_stuff.c Subversion-branch: /branches/v2-branch Subversion-revision: 2737
2013-09-15Hopefully complete implementation of player names and Strife player chatJames Haley
features, which work differently than they did in DOOM. If working properly, then this fully completes Chocolate Strife, aside from any presently unknown issues. Subversion-branch: /branches/v2-branch Subversion-revision: 2646
2013-09-15Frags are displayed on keys popup during deathmatchJames Haley
Subversion-branch: /branches/v2-branch Subversion-revision: 2645
2013-03-02Complete support for v1.31 behaviors in addition to v1.2, including theJames Haley
ability to save on multiple save slots. Subversion-branch: /branches/v2-branch Subversion-revision: 2561
2011-06-04Resolved some TODOs and fixed a couple of problem spots that wereJames Haley
forgotten. Subversion-branch: /branches/strife-branch Subversion-revision: 2344
2011-02-25Found the last difference causing the IWAD to desync - playersJames Haley
experience a small amount of friction while falling (65520/65536). Also added all cheat codes. Subversion-branch: /branches/strife-branch Subversion-revision: 2278
2011-02-14Fix to HUlib_drawYellowText (more Hex-Rays code-skipping shenanigans),James Haley
and finished ST_drawKeysPopup for drawing keys (TODO: in deathmatch it draws frags instead). Fix to buffer overflow in V_ScreenShot - *ATTN fraggle* - needs fix in trunk! Subversion-branch: /branches/strife-branch Subversion-revision: 2265
2011-02-13Added note about authentic typo copied from the binary in p_dialog.James Haley
Also, fixed display of total play times > 1 hr in the objective popup, and added display of ammo and max ammo widgets to the stats popup. Subversion-branch: /branches/strife-branch Subversion-revision: 2264
2011-02-07Added graphical intro loading screen, and -nograph parameter whichJames Haley
disables it. Made most D_DoomMain messages dependent on -devparm. wipegamestate should start == 1, which is currently GS_UNKNOWN. Changed -wart behavior. Verified *no* changes in Strife to p_sight.c. Subversion-branch: /branches/strife-branch Subversion-revision: 2251
2011-02-06Numerous fixes/adjustments: removed bodyque, restored "is turbo" (foundJames Haley
it in there after all), removed some dead code in p_dialog, added a 'default: break;' case in EV_VerticalDoor, initialize player_t::allegiance in P_SetupLevel, minor changes to EV_Teleport, 2nd-pass verification for p_tick, and big fixes in p_user.c including noclip cheat, viewz clipping against floor, air control thrust amount, and missing/incorrect else's. Subversion-branch: /branches/strife-branch Subversion-revision: 2250
2011-02-04Finished second pass through p_mobj.c - module should now be finalizedJames Haley
except for explicitly tagged FIXME/TODO items in P_SpawnMapThing. Subversion-branch: /branches/strife-branch Subversion-revision: 2245
2010-10-05Fix to LEGO cheat so it doesn't cause an invalid access to invsigil[-1]James Haley
in the status bar code, though it IS still possible to acquire and use Sigil type -1, just as it is in vanilla, with some extreme side effects. Subversion-branch: /branches/strife-branch Subversion-revision: 2157
2010-09-28Enable useyfont parameter of M_DialogDimMsg for proper dimensioning ofJames Haley
mission objective text. Fix for implicit declaration warning on HUlib_drawYellowText in m_menu.c. Subversion-branch: /branches/strife-branch Subversion-revision: 2147
2010-09-28Correction to use ev->data1 in ST_Responder for normal keys. FixesJames Haley
popups. Subversion-branch: /branches/strife-branch Subversion-revision: 2146
2010-09-28Identified dword_88604 as st_keystate and made static to ST_Responder.James Haley
Identified dword_88484 as st_keypage. Subversion-branch: /branches/strife-branch Subversion-revision: 2145
2010-09-27+ V_DrawXlaPatch addedSamuel Villareal
+ xlatab lump loading handled in v_video.c + Pop up menus added in st_stuff (not completed still) Subversion-branch: /branches/strife-branch Subversion-revision: 2143
2010-09-25+ stonecold, jimmy, gripper, donnytrump, and lego cheats addedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2138
2010-09-21Working health bars on the status bar, and numerous fixes toJames Haley
P_TouchSpecialThing. Subversion-branch: /branches/strife-branch Subversion-revision: 2127
2010-09-20Most status bar drawing finished.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2125
2010-09-19Functional inventory status bar cursor and item rendering. Fix forJames Haley
P_GiveInventoryItem to return proper value at end of function. Subversion-branch: /branches/strife-branch Subversion-revision: 2124
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-16Work on cheats and on teleportation effects.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2091
2010-09-11+ P_GivePower updateSamuel Villareal
+ Power tics implemented + Power enums implemented + More inventory functions implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2061
2010-09-09Merge from raven-branch.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 2051
2010-09-02Tweaks to Kaiser's PIT_CheckThing work: moved up thing == tmthing check,James Haley
verified clipping and missile stuff, added MF_SPECTRAL check for missiles, and changed missile damage formula to match binary. Major status bar work: STlib rewritten, health and ammo widgets appear on bar. Most DOOM cruft removed. Subversion-branch: /branches/strife-branch Subversion-revision: 1998
2010-09-01Started work on status bar, including loading and drawing some of theJames Haley
background graphics. Added ST_DrawExternal routine and corresponding call logic in D_Display for drawing popups and other bits that are outside the normal statbar. Moved automap mapname widget up 7 pixels. Needs verification via screenshots. Subversion-branch: /branches/strife-branch Subversion-revision: 1994
2010-09-01Handle green palette flash powered by player->nukagecount, and addedJames Haley
Strife mapnames. Subversion-branch: /branches/strife-branch Subversion-revision: 1991
2010-08-31Replace M_NEWG with M_NGAME in menus, disable DOOM status bar, and getJames Haley
the proper music playing on all levels. This really feels like Strife now :) Subversion-branch: /branches/strife-branch Subversion-revision: 1990
2010-08-31+ Stripped out all doom states/sprites and added strife states/sprites.Samuel Villareal
All strife codepointers are set as placeholders + Strife weapons implemented + All state references commented out + All weapon references commented out Subversion-branch: /branches/strife-branch Subversion-revision: 1984
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-02-06Merge from trunk.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 1849
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