qndel
c0f5749728
Fix RNG diverging during level generation depending on the code path
...
The consequences has mostly mitigated after wards, but this will make things make more sens when analysing the state of the code.
5 years ago
Anders Jenbo
374e8177ef
Remove wave.cpp
5 years ago
Anders Jenbo
fd210b4b0b
Clean up Cl2ApplyTrans
5 years ago
Anders Jenbo
2dc33b58ea
Reorder engine.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
31ac716c3d
99 lines of documentation ( #2058 )
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
Anders Jenbo
3b8bcf98bf
Enable assertions
6 years ago
Anders Jenbo
cc280eeba3
Enable asserts in files that where cleaned
6 years ago
Anders Jenbo
cd18914026
Avoid void pointers
6 years ago
Anders Jenbo
6704657e71
Apply sematic codestyle
6 years ago
Anders Jenbo
660405505f
Remove C compat
...
It's unmaintained and clear that we won't be going back since some
functions can only be solved with C++
6 years ago
Anders Jenbo
58e424412a
Better line drawing function ( #98 )
...
https://github.com/diasurgical/devilution/pull/1125#issuecomment-489474723
6 years ago
Anders Jenbo
3c276a3cd3
Add documentation
...
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
6 years ago
Anders Jenbo
e7e51abd13
Document remaning functions in render related files
6 years ago
Anders Jenbo
a29d64b923
Document engine.cpp functions
6 years ago
Anders Jenbo
f1616060e5
Document CL2 render functions
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
6 years ago
qndel
a6a89bca3a
apply TRUE/FALSE
6 years ago
Anders Jenbo
f761c73723
Correct CelBlitWidth signature
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Robin Eklind
f9fa98984b
engine: pass tbl parameter explicitly instead of using default parameter values
...
This helps make the header files in `Source/*.h` parsable from both
C and C++.
Any headers in SourceX can easily be C++ only, but keeping
the core Devilution code parsable as both C and C++ is
useful for integration into mods.
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
6 years ago
Anders Jenbo
1df595c1e0
Revert e35b00acd9 for CelBlitLightSafe
6 years ago
Mathieu Maret
e35b00acd9
Simplify few loops by using memcpy
6 years ago
Anders Jenbo
933262d701
Remove support for partial cel decoding
...
Since we no longer make use of this it should result in a small speed up
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
7d1b0f24f7
Eliminate overdraw in cell functions
7 years ago
Anders Jenbo
3fe2d08940
Deduplicate monster drawing
7 years ago
Anders Jenbo
f8c16a1dcb
Only use safe blitting and set gpBufEnd to the correct relative values
...
This again allows us to only selectivly render the UI panel
This also eliminates the need for the BORDER_BOTTOM 10k memory saved!
7 years ago
Anders Jenbo
337bc9b125
Render text in screen cordinates instead of buffer offsets
7 years ago
Anders Jenbo
ad7a621e5f
Drop PitchTbl to avoid resolution restriction
7 years ago
Anders Jenbo
9e1b161bc0
Unify upper and lower screen rendering
7 years ago
Anders Jenbo
6597688eac
Rename cell functions
7 years ago
Anders Jenbo
bf040777cb
Make more use of cell helpers
7 years ago
Gleb Mazovetskiy
e4de2ad177
Fix UB: Signed integer overflow engine.cpp:1264
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
e97061f126
Correct bad definition of nDataSize
7 years ago
Anders Jenbo
ed746a6d2d
Fix Cl2DecodeFrm3
7 years ago
Anders Jenbo
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
Anders Jenbo
6dd0893bce
Implement CelGetFrameSize
7 years ago
Anders Jenbo
ce6fc51b50
Implement CelGetFrame (CEL decoder helper)
...
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.
Functions are still bin exact
7 years ago
Gleb Mazovetskiy
2cc0c2cfbb
Clang: Remove -fms-extensions -fms-compatibility
7 years ago
qndel
32e519415a
GetDirection cleanup
7 years ago
qndel
a593f3a1d2
6 functions cleanup
7 years ago
qndel
a0575d335f
random bin exact in vanilla/hellfire
7 years ago
Anders Jenbo
2012106b90
Fix spell rendering
7 years ago
Anders Jenbo
762c49ea2e
Remove some left over asm
7 years ago