qndel
2cc494581f
Add enum for icreateinfo
6 years ago
Robin Eklind
c821d43c94
missiles: add BUGFIX for MFILE_NONE enum
...
The current definition of MFILE_NONE is set to 255 (or -1 when
interpreted as a signed 8-bit integer). The definitions of missiles
without graphic animations use MFILE_NONE for the mFileNum field in
missiledata. This is problematic as it results in an out-of-bounds
access in SetMissAnim when accessing misfiledata for such a missile.
One such example is the Recharge Staff skill which does not use a
missile graphic animation and thus has _miAnimType set to MFILE_NONE.
The code path leading to out-of-bounds access after casting Recharge
is as follows: AddMissile -> SetMissDir -> SetMissAnim, which in turn
accesses misfiledata[animtype], i.e. misfiledata[255].
6 years ago
Anders Jenbo
2ec7c78eae
Format source
6 years ago
Anders Jenbo
c9db23de5b
Correct sfx_* names, can be seen in assert strings
6 years ago
Anders Jenbo
7db4ed749a
Apply more enums, defines and types
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Anders Jenbo
bb9315db92
Correct shareware data
...
This fixes the intro music being played to frequently in the menu, and
makes sure that some spells are not avalible.
6 years ago
galaxyhaxz
71565b9c02
Several updates [enums+names] ( #2002 )
...
* Several updates
* Correct msg_get_next_packet
* Update enums.h
Co-Authored-By: Robin Eklind <mewmew@users.noreply.github.com>
Co-authored-by: Robin Eklind <mewmew@users.noreply.github.com>
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
Gleb Mazovetskiy
16a154f062
Change _INVALID enum values from 0xFFFFFFFF to -1
...
Some of these are assigned to `char` (assumed to be signed), and 0xFFFFFFFF is `-1` only when sizeof(int) == 4.
7 years ago
Anders Jenbo
9daea5be8a
Back port clean ups from Hellfire
7 years ago
Anders Jenbo
10c33575ac
Clean ups from hellfire branch
7 years ago
galaxyhaxz
a3ce219891
Fix bug in InitItems
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
galaxyhaxz
484b17d259
Add Select Hero enum ( #1330 )
7 years ago
Anders Jenbo
a52d36a90f
Correct value of DLRG_CHAMBER
7 years ago
Adam Newgas
66a1c246e6
Add dlrg_flag enum.
7 years ago
Anders Jenbo
0483a923c3
Add enum for dlgresults
7 years ago
Anders Jenbo
565bb5aa7d
Adust dFlag enums
7 years ago
Sergey Semushin
8bc995e681
Add _uniq_monsterid enum for indexes in UniqMonst for special unique monsters.
...
Apply it where necessary.
7 years ago
Anders Jenbo
be3526054c
Apply theme_id enums
7 years ago
Anders Jenbo
b4fe143e29
Add player_weapon_type
7 years ago
Anders Jenbo
14610a2345
Apply FILE_SYSTEM enum
7 years ago
Anders Jenbo
8b21de7b0d
apply _artfonts enum ( #486 )
7 years ago
Anders Jenbo
f505809699
C compatible enum.h and struct.h
8 years ago
Anders Jenbo
2037972450
Fix M_Enemy ( #467 )
...
This fixes an issue where the gargoyle would not sleep
8 years ago
galaxyhaxz
b3fdda7c18
GM_Game+others ( #458 )
8 years ago
Anders Jenbo
04b19f604d
Monster.cpp ( #443 )
...
* Clean up MAI_Golum
* Clean up MAI_Garbud
* Clean up MAI_Lachdanan
* Clean up DeleteMonsterList
* Clean up FreeMonsters
* Define enums for resistance
* Correct AddPanelString input
* Correct pinfoflag type
* Define monster_goal
* apply enum to _pIFlags
* Correct DeleteMonsterList
* Add TODO for possible bug fix.
8 years ago
Anders Jenbo
a8e5319838
Add todo notes to enums
8 years ago
Anders Jenbo
e340ce2241
Monster.cpp ( #442 )
...
* Clean M_UpdateLeader
* Clean up M_DoRSpAttack
* Add definition for mFlags
Fixes #416
8 years ago
Anders Jenbo
0fb5c0bf9c
Additional tab indentation
8 years ago
Anders Jenbo
480bbe8c63
Apply missile_id and align spells table
8 years ago
Anders Jenbo
5394f63dd7
Define diablo_message enum
8 years ago
Anders Jenbo
f80de53b14
_iMagical enum ( #393 )
...
* _iMagical enum
* Color enum
8 years ago
Anders Jenbo
c878a630f5
Monster.cpp ( #402 )
...
* Clean up DeleteMonster
* AddMonster
* Clean up NewMonsterAnim
* Clean up M_Ranged, M_Talker and M_GetDir
* Clean up M_StartDelay
* Clean up M_StartSpStand
* Clean M_StartSpStand
* Add enum to monster Anim
8 years ago
Anders Jenbo
411fa9f24a
Add enumds for _pgfxnum and fully use inv_body_loc ( #392 )
...
* Add enumds for _pgfxnum and fully use inv_body_loc
* _iIdentified is BOOL
* _pgfxnum
8 years ago
Robin Eklind
7515655efb
Run format.sh
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
Anders Jenbo
f269f4561b
PlaySFX_priv, stream_play ( #371 )
...
* PlaySFX_priv, stream_play
* Fix build warnings in player.cpp
* Clean up FreeMonsterSnd
* Added more enums and defines for sound and effects.
8 years ago
squidcc
51bfa2353b
Use quest enum values ( #362 )
...
* add/assign enums related to Black Mushroom quests
* plug in more quest enum values
8 years ago
Anders Jenbo
d62683c891
Clean up MakePlrPath ( #321 )
8 years ago
Anders Jenbo
9bd3b4189e
Clean up CheckNewPath ( #332 )
8 years ago
Andrew Dunstan
71cae5f8c2
add enums for known actions (to be performed in response to commands)
8 years ago
Anders Jenbo
7da6f4d08a
Clean up PM_DoDeath ( #317 )
...
* Clean up PM_DoDeath
* Add enum for dFlags
8 years ago
Anders Jenbo
081c4a3f93
Fix build
8 years ago
Anders Jenbo
cd79931ed4
Add iCurs enum
8 years ago
Anders Jenbo
b4e9727377
Add dungeon_message enum
8 years ago
Andrew Dunstan
50d3db3ec2
add an enum for types of shrines
8 years ago
Dennis Duda
c614acd242
Changed `PFILE_ALL` to `PFILE_NONDEATH` to not be misleading
8 years ago