Robin Eklind
85ece87a75
Update Source/monster.cpp
...
Co-authored-by: qndel <stefan551@o2.pl>
6 years ago
Robin Eklind
7b63273336
monster: add BUGFIX comment to DirOK
...
The issue here is probably very unlikely to trigger anything in-game, as
the first 4 monster array elements are reserverd for golems. However,
after executing the body of the `if (mi != 0) { mi-- }` if-statement,
it is not possible to determine whether mi was 0 or 1 before executing
the body. This is relevant as the pack member check should only be
performed if mi was non-zero prior to executing the body of the
if-statement.
A fixed may look something as follows:
if (mi != 0) {
mi--;
// BUGFIX: should only run pack member check if mi was non-zero prior to executing the body of the above if-statemnet (fixed).
if (monster[mi].leaderflag == 1
&& monster[mi].leader == i
&& monster[mi]._mfutx == x
&& monster[mi]._mfuty == y) {
mcount++;
}
6 years ago
Robin Eklind
7cabbb43f6
monster: add BUGFIX to MAI_Golum
...
The dMonster array stores monster array index numbers + 1
(or the corresponding negative version -(index + 1)).
Prior to use, these must be decremented by 1.
6 years ago
Robin Eklind
dc6f9b6585
missiles: add BUGFIX comment for GetDirection16
6 years ago
Anders Jenbo
31ac716c3d
99 lines of documentation ( #2058 )
6 years ago
Anders Jenbo
9821ff72d1
Document variables in drlg files
6 years ago
Anders Jenbo
c1b4d3d8b5
Copy documentation from sanctuary/notes
6 years ago
Anders Jenbo
1ba96a6777
Add doxygen description to remaining engine files
6 years ago
Robin Eklind
a67ae6db3a
Merge pull request #2056 from diasurgical/bugfix_DrawSLine
...
stores: add bugfix comment for DrawSLine
6 years ago
Robin Eklind
6448f7901b
stores: add bugfix comment for DrawSLine
6 years ago
Robin Eklind
60eb5c946c
items: add BUGFIX comment for DrawULine
6 years ago
qndel
259f618b2d
remove unused variable
6 years ago
Robin Eklind
c2df2635db
engine: add BUGFIX comment for Cl2BlitOutlineSafe
...
When hovering over a monster at the bottom part of the screen, the
outline may be off-by-one, thus overwriting the top pixel of the panel.
6 years ago
gogogogi
a69e754cc9
Fix PPA debian building version and git commit ( #753 )
6 years ago
Anders Jenbo
9a04787577
Make all objects and monsters avalible to .dun levels
6 years ago
qndel
f66339a9ac
clean unused variables
6 years ago
Anders Jenbo
36e319cb7f
Add bugfix to MonstStartKill
6 years ago
Marcin Konicki
e4cbde0236
Prevent double free of sound chunk in storm ( #744 )
6 years ago
ahwayakchih
63da55f225
Fix description text for "join game" option
6 years ago
Marcin Konicki
2a5d3b6c52
Use asio to resolve host name (or IP)
...
Fixes #735
6 years ago
Marcin Konicki
515ac145c5
Implement `--save-dir` CLI option
...
* Lazy load ini, this also fixes launching the game on Android
6 years ago
Anders Jenbo
0fddb655e3
Clean up var names
6 years ago
Anders Jenbo
5a7d86b46e
Make ScrollBarArrowFrame C++03 compatible
6 years ago
Anders Jenbo
c32f33f19f
Use safe ranges instead of decltype() for C++03 compatability
...
SDL2 uses int, but SDL1.2 uses Uint16 and Sint16.
6 years ago
Anders Jenbo
1c824a253f
Make controller TextAlignment C++03 compatible
6 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Marek Majkowski
f8ac2456e5
Bugfix: allow players of level 20 to enter nightmare game
...
Right now we update heroLevel only on "CreateGame" code. This
means you can't enter nightmare/hell game at all - unless you
do createGame first. Let's set the heroLevel global variable in both
create and join game cases.
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
7a90b9102a
When needed, clear buffer before rendering menu
6 years ago
Anders Jenbo
ca82f81582
Move menu elements to the center of the screen
...
Previously the rendering was just shifted which gave the mouse an odd
position and made it impossible to place new elements in the left side.
6 years ago
Anders Jenbo
e6ac9d379d
Correct automap rendering for all resolutions dynamically
6 years ago
Anders Jenbo
9d68312aa1
Check that cursor is inside of the level
6 years ago
Anders Jenbo
9acbcc69f9
Width independant vertical alignment, optimize zoom
6 years ago
Anders Jenbo
b7c126d976
Apply defines to render
6 years ago
rsn8887
290a474f94
Fix building with latest SDL2 on Switch
6 years ago
Anders Jenbo
43586c4b0d
Correct inclusion of Radon.hpp
6 years ago
Anders Jenbo
36cd56868b
Use preprocessor macros instead of constexpr for events enums
6 years ago
Anders Jenbo
0da3461d35
Use explicit types instead of auto
6 years ago
Anders Jenbo
014308ef01
Explicit casting
6 years ago
Anders Jenbo
a3505ab904
Remove the std namespace from uint32_t
...
Again to help older compileres that aren't C++11 aware.
6 years ago
Anders Jenbo
4b46361442
Remove some unused variables
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Anders Jenbo
9e6d99ebb0
CMakeSettings.json is needed to configure VS build envs
6 years ago
Anders Jenbo
54741abc87
Correct check for panel when zoomed
6 years ago
Anders Jenbo
b274f395f6
Correctly assert if the mouse is inside the main panel
6 years ago
Anders Jenbo
2104bf2af2
Fix rendering towners with bad lighting data
...
dFlags appears to contain garbage in the BFLAG_LIT for town. This wasn't
an issue originally since it wasn't being checked when rendering
towners.
6 years ago
Anders Jenbo
cb4cb653e7
Merge branch 'master' of github.com:diasurgical/devilution
6 years ago
Anders Jenbo
8c2fb7605e
Use defines for tile and screen related magic numbers
6 years ago
Anders Jenbo
2b5b5ca785
Remove problematic packing
...
This should help to compile for some ARM systems like Nintendo 3DS
6 years ago
Anders Jenbo
af7f3f0f27
Bugfix for CheckCursMove ( #2046 )
6 years ago