Commit graph

252 commits

Author SHA1 Message Date
Anders Jenbo
a29d64b923 Document engine.cpp functions 2020-02-16 01:42:41 +01:00
Anders Jenbo
f1616060e5 Document CL2 render functions 2020-02-15 17:06:31 +01:00
Anders Jenbo
25993b4043 Merge branch 'master' of github.com:diasurgical/devilution 2020-02-14 23:03:31 +01:00
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).
2020-02-14 13:12:54 +01:00
Anders Jenbo
40ba1e7a6f Merge branch 'master' of github.com:diasurgical/devilution 2020-02-01 14:48:39 +01:00
qndel
a6a89bca3a apply TRUE/FALSE 2020-01-31 19:22:51 +01:00
Anders Jenbo
f761c73723 Correct CelBlitWidth signature 2020-01-01 17:34:29 +01:00
Anders Jenbo
da03bae69d Merge branch 'master' of github.com:diasurgical/devilution 2019-12-25 20:38:25 +01:00
Anders Jenbo
0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
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.
2019-11-12 15:23:42 +01:00
Anders Jenbo
215ff59e65 Merge branch 'master' of github.com:diasurgical/devilution 2019-11-01 00:06:53 +01:00
galaxyhaxz
67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Anders Jenbo
4e8a8d2157 Merge remote-tracking branch 'refs/remotes/devilution/master' 2019-10-26 13:43:28 +02:00
Anders Jenbo
0e578ffb11 Enable assertions 2019-10-22 19:04:55 +02:00
Anders Jenbo
1df595c1e0 Revert e35b00acd9 for CelBlitLightSafe 2019-10-22 01:39:39 +02:00
Mathieu Maret
e35b00acd9 Simplify few loops by using memcpy 2019-10-22 01:33:46 +02:00
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
2019-10-22 01:31:14 +02:00
Robin Eklind
e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
Anders Jenbo
7d1b0f24f7 Eliminate overdraw in cell functions 2019-10-20 15:59:47 +02:00
Anders Jenbo
3fe2d08940 Deduplicate monster drawing 2019-10-20 15:59:47 +02:00
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!
2019-10-20 15:59:47 +02:00
Anders Jenbo
337bc9b125 Render text in screen cordinates instead of buffer offsets 2019-10-20 15:59:47 +02:00
Anders Jenbo
ad7a621e5f Drop PitchTbl to avoid resolution restriction 2019-10-20 15:59:47 +02:00
Anders Jenbo
9e1b161bc0 Unify upper and lower screen rendering 2019-10-20 15:59:47 +02:00
Anders Jenbo
a0baa92ef0 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-13 19:59:26 +02:00
Anders Jenbo
6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Anders Jenbo
bf040777cb Make more use of cell helpers 2019-10-12 17:45:11 +02:00
Gleb Mazovetskiy
e4de2ad177 Fix UB: Signed integer overflow engine.cpp:1264 2019-10-09 19:56:04 +02:00
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
2019-10-06 01:27:11 +02:00
Anders Jenbo
e97061f126 Correct bad definition of nDataSize 2019-09-28 17:14:54 +02:00
Anders Jenbo
ed746a6d2d Fix Cl2DecodeFrm3 2019-09-28 17:10:43 +02:00
Anders Jenbo
1a2f2b5f52 Implement CelGetFrameClipped from the Mac 9 port 2019-09-28 06:07:24 +02:00
Anders Jenbo
64824cab2b Implement CelGetFrameStart 2019-09-28 06:07:24 +02:00
Anders Jenbo
fae2be813a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-28 04:31:04 +02:00
Anders Jenbo
6dd0893bce Implement CelGetFrameSize 2019-09-28 00:14:01 +02:00
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
2019-09-27 21:02:44 +02:00
Gleb Mazovetskiy
2cc0c2cfbb Clang: Remove -fms-extensions -fms-compatibility 2019-09-25 03:32:00 +02:00
qndel
32e519415a GetDirection cleanup 2019-09-21 17:01:37 +02:00
qndel
a593f3a1d2 6 functions cleanup 2019-09-18 00:54:43 +02:00
Anders Jenbo
14f8c9368a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-13 17:51:58 +02:00
qndel
a0575d335f random bin exact in vanilla/hellfire 2019-09-01 03:40:32 +02:00
Anders Jenbo
2012106b90 Fix spell rendering 2019-08-26 16:30:20 +02:00
Anders Jenbo
762c49ea2e Remove some left over asm 2019-08-26 15:08:13 +02:00
Anders Jenbo
1ebf8fe27d Remove unused fallbacks 2019-08-26 14:05:04 +02:00
Anders Jenbo
f605138c79 Strip ASM code 2019-08-26 13:33:03 +02:00
Anders Jenbo
98ab9b9600 Merge branch 'master' of github.com:diasurgical/devilution 2019-08-18 08:07:33 +02:00
Robin Eklind
2508690d9c engine: rename rand_increment and rand_multiplier to RndInc and RndMult
Rationale described in a479cc56b8
as included below:

Note, neither rand_increment nor rand_multiplier are
present in the PSX debug info. To keep the names for
these variables consistent with the naming convention
used for sglGameSeed, SeedCount, SetRndSeed and
GetRndSeed (which are part of the PSX debug info), we
rename them to RndInc and RndMult, respectively.
2019-08-18 07:44:39 +02:00
Alex Yatskov
f1da6e6a38 Fix invalid file and line constants (#222)
* Fix invalid file and line constants

* add macros

* remove ASSERT_FAIL macro
2019-08-07 15:49:20 +02:00
Anders Jenbo
60ee365dff Merge branch 'master' of github.com:diasurgical/devilution 2019-07-20 19:52:50 +02:00
Anders Jenbo
3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00