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)
2020-03-01 22:18:00 +01:00
Anders Jenbo
f761c73723
Correct CelBlitWidth signature
2020-01-01 17:34:29 +01:00
Anders Jenbo
3e7d352fde
Format files
2019-10-21 20:04:14 +02:00
Robin Eklind and Anders Jenbo
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
6597688eac
Rename cell functions
2019-10-13 13:31:56 +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
Robin Eklind and Anders Jenbo
2508690d9c
engine: rename rand_increment and rand_multiplier to RndInc and RndMult
...
Rationale described in https://github.com/sanctuary/notes/commit/a479cc56b8fcb7db1a88ac487a10147c99033963
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
Anders Jenbo
7883043adc
Clean up files with dirty headers
2019-07-08 04:28:31 +02:00
Anders Jenbo
dc4f0572f6
Remove unused variables
2019-07-08 04:28:31 +02:00
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
2019-07-08 04:12:12 +02:00
galaxyhaxz and GitHub
75a150d142
DrawLine ( #1084 )
2019-05-01 05:32:05 -05:00
galaxyhaxz
5d4918eea0
LoadWithMem
2019-04-30 22:47:53 -05:00
galaxyhaxz and GitHub
3a636fdcc6
Add missing functions for MI_Dummy ( #1004 )
2019-04-22 20:21:52 -05:00
galaxyhaxz and Anders Jenbo
cef65ea0b6
Implement Critical section constructor
2019-04-15 01:16:43 +02:00
galaxyhaxz and Anders Jenbo
4e01e03711
Cleanup default calling conventions
2019-04-09 12:04:00 +02:00
Anders Jenbo
e7d5aac5dc
Clean up engine and scrollrt attribute naming
2019-04-07 21:17:59 +02:00
galaxyhaxz and Robin Eklind
f388472713
ENG_set_pixel + engine_draw_pixel ( #691 )
2019-03-19 18:57:23 +09:00
galaxyhaxz and GitHub
0bb9f666b3
Clean remaining .CEL functions ( #657 )
2019-03-17 15:56:53 -05:00
galaxyhaxz and GitHub
9e4885a955
Cleanup CL2 functions ( #656 )
2019-03-15 21:56:04 -05:00
galaxyhaxz and Robin Eklind
81f3f5daa2
Cleaning Engine CEL functions ( #652 )
...
* Cleaning Engine CEL functions
* Fix C functions
2019-03-14 10:47:39 +09:00
Anders Jenbo and Robin Eklind
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
2019-01-15 10:15:48 +01:00
Anders Jenbo
9b7da61dcf
Auto format src
2019-01-13 18:55:59 +01:00
Anders Jenbo and Robin Eklind
54247a076c
C init ( #549 )
...
* Make initializers C compatible
* Compile more files as C
dthread.cpp dx.cpp init logging.cpp fault.cpp msgcmd.cpp nthread.cpp
* Update defs.h
2019-01-10 21:39:28 +01:00
Anders Jenbo and GitHub
fd2a45ff9a
Engine.cpp ( #548 )
...
* Clean up DiabloAllocPtr
* Clean up mem_free_dbg
* Clean up GetDirection
* Clean up PlayInGameMovie
* 18 directions
2019-01-03 02:29:31 +01:00
Anders Jenbo and Robin Eklind
e795b6116a
Make use of atexit() C compatible ( #537 )
2019-01-01 03:05:29 +01:00
Anders Jenbo and Robin Eklind
77849aea72
Remove unused init ( #533 )
2018-12-31 04:26:51 +01:00
Robin Eklind and GitHub
8ed5573766
engine: clean up CelDecDatLightEntry and Cel2DecDatLightEntry ( #524 )
...
Now, these functions no longer use references. Instead they
use pointer to pointer. Furthermore, they've been simplified
to for loops, as essentially, the decompiled functions were
unrolled loops (as seen in the memset function).
2018-12-30 03:52:50 +01:00
Anders Jenbo and Robin Eklind
b5f69dccdc
C compatability from d-p ( #519 )
2018-12-29 17:54:22 +01:00
Anders Jenbo
b1f6d3698f
Update style to use tabs
2018-10-25 22:53:04 +02:00
squidcc and Robin Eklind
49af056b14
Clean DrawAutomapType ( #299 )
...
cosmetic name corrections
2018-09-26 11:04:51 +02:00
Dennis Duda
6792078180
Merge remote-tracking branch 'devilution/master'
2018-09-10 20:44:41 +02:00
galaxyhaxz and GitHub
38b498ac4b
Add 'const' to data to match original binary ( #200 )
2018-09-09 15:40:23 -05:00
Dennis Duda
e8b53791d3
DrawInv is now binary exact.
2018-09-05 18:29:40 +02:00
Dennis Duda
16a576cd5b
Brought GetLevelMTypes very close to binary exact
2018-08-29 01:47:35 +02:00
Dennis Duda
2a492cf9c3
Merge remote-tracking branch 'devilution/master'
2018-08-23 18:06:00 +02:00
galaxyhaxz and GitHub
5ed2336e90
Fix types of animation data ( #176 )
2018-08-22 23:15:16 -05:00
Dennis Duda
df44956a78
Cleaned up InitMonsterTRN.
...
Including changed types used by that function.
2018-08-19 23:17:57 +02:00
galaxyhaxz and GitHub
775ae59e18
Fix function signatures and others ( #158 )
...
Fix InitObjects, themes.cpp, names
2018-08-12 18:32:48 -05:00
galaxyhaxz and GitHub
8f50c57141
Fix engine (objects always being lit) ( #132 )
...
Also refactored readme
2018-07-10 02:12:14 -05:00
galaxyhaxz and GitHub
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz and GitHub
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz and GitHub
dde68ff89e
Add files via upload
2018-06-06 21:25:54 -05:00