Martin Hauke
6fc09ea8a6
Fix some typos
7 years ago
galaxyhaxz
86e552a9e7
Change PCX struct to match Z-Soft Manual
7 years ago
Anders Jenbo
9d3ce818f0
Correct BOOLS
7 years ago
Anders Jenbo
6fba17eec5
Correct GLOBAL types based on PSX SYM 3
7 years ago
Anders Jenbo
b023104434
Remove u from values
7 years ago
Anders Jenbo
6ba57a2d10
Remove the last bit of garbage
7 years ago
Anders Jenbo
5ab9f4609a
Clean up signedness
7 years ago
Anders Jenbo
e2bff090d6
Come up with names for all remaning arguments
7 years ago
Anders Jenbo
aa50489569
Clean up generated comments
7 years ago
Sergey Semushin
843ae57592
Make scrollrt_draw_dungeon bin exact.
7 years ago
Sergey Semushin
54e66e08a0
Remove workaround goto from TalkToTowner.
7 years ago
Joan Karadimov
f695061d05
Replace resolution-related hard-coded numbers with constants
7 years ago
Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
7 years ago
Robin Eklind
107282953c
Use ITEM_QUALITY_MAGIC for _iMagical.
7 years ago
Anders Jenbo
a7ad382c10
Get scrollrt_draw_dungeon to min diff
...
Co-Authored-By: Sergey Semushin <predelnik@gmail.com>
7 years ago
Robin Eklind
7441f29867
Use TRUE value for _iIdentified.
7 years ago
Robin Eklind
a6d948f87d
Use hex literal for iCreateInfo and boolean values for _iPostDraw.
7 years ago
Robin Eklind
3c182c7135
Remove u suffix from integer literals.
7 years ago
Robin Eklind
d4d466b30c
Use FALSE value for _iAnimFlag and update comment of ghit.
7 years ago
galaxyhaxz
7451415c7c
Alt+Enter fullscreen (debug)
7 years ago
Robin Eklind
5371d13154
Make use of item_special_effect enums.
7 years ago
Robin Eklind
002ad4056c
split PWVel into two global variables, PWVel and AnimLenFromClass
...
Background:
From the values of PWVel, I think it is
actually two global variables that have
been merged into one.
int PWVel[4][3] = {
{ 2048, 1024, 512 },
{ 2048, 1024, 512 },
{ 2048, 1024, 512 },
{ 8, 8, 8 }
};
I think it should be:
int PWVel[3][3] = {
{ 2048, 1024, 512 },
{ 2048, 1024, 512 },
{ 2048, 1024, 512 }
};
int AnimLenFromClass[3] = {
{ 8, 8, 8 }
};
Then, this code in PM_DoWalk would make more sense:
Before:
vel = 8;
if (currlevel != 0) {
vel = PWVel[3][plr[pnum]._pClass];
}
After:
AnimLen = 8;
if (currlevel != 0) {
AnimLen = AnimLenFromClass[plr[pnum]._pClass];
}
7 years ago
Robin Eklind
105a583ce0
Use TRUE and FALSE enums for setlevel.
...
Also simplify if conditions to make
use of boolean values.
(If the cleanup4 PR ends up increasing
inserts/deletions, then this commit is
probably at fault.)
7 years ago
Robin Eklind
b727d158ab
Make _pSLvlVisited into a boolean.
...
_pSLvlVisited is only ever used in boolean contexts.
7 years ago
Robin Eklind
29eb52b6d0
Make _pLvlVisited into a boolean.
...
_pLvlVisited is only ever used in boolean contexts.
7 years ago
Robin Eklind
a443e5091e
Make _pInfraFlag a boolean.
...
_pInfraFlag is only ever used in boolean contexts.
7 years ago
Robin Eklind
59167447ba
msg: use enum for RSPLTYPE_INVALID in msg.cpp
7 years ago
Robin Eklind
983d2d6769
Make _pLvlChanging into a boolean.
...
_pLvlChanging is only ever used in boolean contexts.
7 years ago
Robin Eklind
f59439a8ff
Make _pInvincible into a boolean.
...
_pInvincible is only ever used in boolean contexts.
7 years ago
Robin Eklind
3f4a539bf7
Make _pBlockFlag into a boolean.
...
_pBlockFlag is only ever used in boolean contexts.
7 years ago
Robin Eklind
8402bbaff5
player: replace WALK_NONE with -1 for lightning index
7 years ago
Robin Eklind
9b6e866878
Update Source/multi.cpp
...
Co-Authored-By: Anders Jenbo <anders@jenbo.dk>
7 years ago
Robin Eklind
98ac9ebaf3
multi: use name from PSX for InitLevelType
7 years ago
Robin Eklind
f47e29d60d
multi: rename InitNewSeed to DTypeFromDLvl
7 years ago
Sergey Semushin
c4c2132ac6
Cast pointer to ptrdiff_t to make code less undefined for 64-bit.
7 years ago
Robin Eklind
4cbf8c9ec3
Rename global pCelBuff to pSPentSpn2Cels
...
This is to avoid confusion, as pCelBuff is also
commonly used as a parameter name.
The naming follows the convention used by
TextBox2.CEL and TextSlid.CEL, as seen in
stores.cpp
pSTextBoxCels = LoadFileInMem("Data\\TextBox2.CEL", NULL);
pSPentSpn2Cels = LoadFileInMem("Data\\PentSpn2.CEL", NULL);
pSTextSlidCels = LoadFileInMem("Data\\TextSlid.CEL", NULL);
7 years ago
galaxyhaxz
0da0dbc9a3
Fix AddCbolt conditional
7 years ago
Adam Newgas
c55c61f23a
Update comments to doxygen style.
7 years ago
Adam Newgas
79ad7b9d9e
Add some comments to some tricky to understand functions.
7 years ago
Adam Newgas
fc8882b7db
Add some bugfix notes.
7 years ago
Adam Newgas
66a1c246e6
Add dlrg_flag enum.
7 years ago
Adam Newgas
3d1d01ce86
More use of DMAXX/DMAXY
7 years ago
Adam Newgas
f363cfa85f
Use DMAXX/DMAXY and BFLAG_EXPLORED in drlg_l2.cpp
7 years ago
Robin Eklind
d113d3a158
debug: add ICURS_GOLD_LARGE enum
7 years ago
Xadhoom
0234ff2ae4
One further BUGFIX in drlg_l4.cpp
7 years ago
Xadhoom
3b203f7c50
BUGFIX comments for drlg_l?.cpp, gendung.cpp, monster.cpp
7 years ago
Xadhoom
63847b0f33
Use DMAXX and DMAXY constants
7 years ago
Robin Eklind
4e09aeb3a8
pfile: add assert comments to pfile_rename_temp_to_perm
...
Based on @galaxyhaxz code in https://github.com/diasurgical/devilution/pull/1294#issuecomment-509018789
Also, per suggestion of @sskras .
7 years ago
Anders Jenbo
55b5ce883d
Clean up unformatted files
7 years ago
Anders Jenbo
7883043adc
Clean up files with dirty headers
7 years ago