Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Anders Jenbo
046064fcfe
Fix PostMessageA an remove more unused event code
6 years ago
galaxyhaxz
9c98c1e43d
Fix all "pass by ref" functions
6 years ago
Anders Jenbo
d94b245497
[controlls] Prioritize spell targets
...
Spells will now target either the apropriate highlighted actor or the
current direction.
6 years ago
Anders Jenbo
af0a7c0653
Apply SPANEL_WIDTH
6 years ago
Anders Jenbo
003f0b9b75
Prevent casting spells threw spellbook
6 years ago
qndel
d864e3beb7
comment
6 years ago
qndel
f1de846ccb
clicking on the sides of main panel and below side panels
6 years ago
Xadhoom
2134b10d64
more unsigned shifts with cursor handling
6 years ago
Anders Jenbo
c86cec3c5f
Prioritize controller navigation
...
Only do one type of navigation at any one time.
Priority: Inventry, Stats, Spells, Walk.
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
Anders Jenbo
2079b67475
Drop dpiece_defs_map_1 memory access optimization
...
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
6 years ago
Gleb Mazovetskiy
fb37bbf675
Disable some signed shift UBSAN warnings
...
On Clang we can do this globally via a sanitizer blacklist, but that's not supported on GCC (yet):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978
We disable these warnings because all compilers implement them in the
same way according to the N2218 proposal to standardize the behaviour:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2218.htm
7 years ago
Anders Jenbo
ba9288c6cf
Unify error dialogs, for looks and portability
...
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
7 years ago
Anders Jenbo
d2b1f0cfc8
Apply the Cel helper functions in a few more places
7 years ago
Robin Eklind
d16f603537
all: remove unused storm imports
...
While no storm functions are called from these source files
it is determined that they included storm in the original
source files as made visible by the inclusion of infinity
in the data segments of the respective source files.
ref: diasurgical/devilution#1695 .
7 years ago
Anders Jenbo
b834c4e418
Clean up RemovePlrMissiles
7 years ago
Anders Jenbo
f331d3b5a4
Backport Hellfire cleanups
7 years ago
Anders Jenbo
4e5b9312a6
Clean up PM_ChangeLightOff
7 years ago
Anders Jenbo
a3cfdccf68
Add the e variable to AddPlrMonstExper
7 years ago
Anders Jenbo
fae3c2a237
Clean up AddPlrMonstExper
7 years ago
Anders Jenbo
9daea5be8a
Back port clean ups from Hellfire
7 years ago
Anders Jenbo
5169f3024c
RestartTownLvl clean up
7 years ago
qndel
0a76a26b24
Clean up
7 years ago
qndel
a17e34c4bf
applied enums to _pmode and untangled ifs
7 years ago
qndel
a521da3ccf
[hellfire] PM_DoDeath bin exact
7 years ago
Anders Jenbo
346f87fba8
[spawn] make GetPlrGFXSize bin exact
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Anders Jenbo
9d3ce818f0
Correct BOOLS
7 years ago
Anders Jenbo
b023104434
Remove u from values
7 years ago
Anders Jenbo
3bc8ba66b0
Use defines for more screen geometry values
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
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
983d2d6769
Make _pLvlChanging into a boolean.
...
_pLvlChanging 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
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
26932a843f
Fix min diff in PlrHitMonst ( #1281 )
7 years ago
Duarte Alvim
6a4142fb08
Add gold constants
7 years ago
Manuel K
896933f55e
Replace magic number 352 with VIEWPORT_HEIGHT ( #1232 )
7 years ago
Anders Jenbo
56dcdd669b
Clean up DrawChr
7 years ago
Anders Jenbo
565bb5aa7d
Adust dFlag enums
7 years ago
Sergey Semushin
47aee25195
Make Do_Death bin exact.
7 years ago
Anders Jenbo
9f5af2e6df
Clean up player.cpp
7 years ago
Anders Jenbo
66438890aa
Clean up spells.cpp
7 years ago
galaxyhaxz
029b15f298
Fix type for Dungeon Micros
7 years ago
Anders Jenbo
512f858e67
Correct count
7 years ago