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
Anders Jenbo
dc4f0572f6
Remove unused variables
7 years ago
Anders Jenbo
94f7b179e2
Stop clang_format from breaking compiling
7 years ago
Robin Eklind
964c17457b
pfile: add BUGFIX comment for pfile_rename_temp_to_perm
7 years ago
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
galaxyhaxz
ec6562826a
Fix L4firstRoom variables
7 years ago
Anders Jenbo
1d55e5849c
Clean up init.cpp
7 years ago
Anders Jenbo
86e2bab837
Clean up init_disable_screensaver
7 years ago
Anders Jenbo
87d8588f67
Compare int to numbers
7 years ago
Anders Jenbo
f71471eab7
Correct types related to glSeedTbl
...
Reference:
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/global_0.cpp#L2431
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l1.cpp#L542
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l2.cpp#L538
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l3.cpp#L499
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l4.cpp#L484
7 years ago
Anders Jenbo
c1f9e8293e
Correct new line encoding
...
_asm.cpp and _render.cpp is still incorrectly encoded
7 years ago
Anders Jenbo
0483a923c3
Add enum for dlgresults
7 years ago
Anders Jenbo
7c071924ad
Format recently cleaned code
7 years ago
Anders Jenbo
d2cb6a59e7
Apply scrollrt naming to town.cpp
7 years ago
galaxyhaxz
ceafdf2337
Add DRLG_L3 bugfix comment
7 years ago
Joan Karadimov
5279141836
Use the DMAXX/DMAXY constants where possible
7 years ago
Joan Karadimov
f16bc267fc
Use the dungeon_type enum for ReturnLvlT
7 years ago
Joan Karadimov
fce804a09a
Use the dungeon_type enum for leveltype
7 years ago
galaxyhaxz
26932a843f
Fix min diff in PlrHitMonst ( #1281 )
7 years ago
Sergey Semushin
138197eb9b
Fix min diff in gmenu_draw_menu_item.
7 years ago
galaxyhaxz
24595d3565
dx_init bin exact (proper fix)
7 years ago
Anders Jenbo
ce520b395b
Fix gmenu_draw_menu_item
7 years ago
Anders Jenbo
457b9186da
Clean up gmenu_draw_menu_item
7 years ago
Sergey Semushin
83a9cd065c
Fix min diff in DL2_FillVoids.
7 years ago
Anders Jenbo
d437d48f66
Align scrollrt_draw_dungeon with cliped versions
7 years ago
Sergey Semushin
813d6693fb
Add macro for aligning by 1 and apply it to 3 functions to make them bin exact.
7 years ago
Sergey Semushin
ee70bb8053
Make TList<EXTERNMESSAGE>::Create not inlined and bin exact.
7 years ago
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Duarte Alvim
6a4142fb08
Add gold constants
7 years ago
Sergey Semushin
863a0ae0e3
Make some member functions of TList<EXTERNMESSAGE> bin exact.
7 years ago