Anders Jenbo
2dc33b58ea
Reorder engine.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
cd18914026
Avoid void pointers
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
f761c73723
Correct CelBlitWidth signature
6 years ago
Anders Jenbo
3e7d352fde
Format files
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
6597688eac
Rename cell functions
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
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.
7 years ago
Anders Jenbo
7883043adc
Clean up files with dirty headers
7 years ago
Anders Jenbo
dc4f0572f6
Remove unused variables
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
75a150d142
DrawLine ( #1084 )
7 years ago
galaxyhaxz
5d4918eea0
LoadWithMem
7 years ago
galaxyhaxz
3a636fdcc6
Add missing functions for MI_Dummy ( #1004 )
7 years ago
galaxyhaxz
cef65ea0b6
Implement Critical section constructor
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
e7d5aac5dc
Clean up engine and scrollrt attribute naming
7 years ago
galaxyhaxz
f388472713
ENG_set_pixel + engine_draw_pixel ( #691 )
7 years ago
galaxyhaxz
0bb9f666b3
Clean remaining .CEL functions ( #657 )
7 years ago
galaxyhaxz
9e4885a955
Cleanup CL2 functions ( #656 )
7 years ago
galaxyhaxz
81f3f5daa2
Cleaning Engine CEL functions ( #652 )
...
* Cleaning Engine CEL functions
* Fix C functions
7 years ago
Anders Jenbo
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
7 years ago
Anders Jenbo
9b7da61dcf
Auto format src
7 years ago
Anders Jenbo
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
7 years ago
Anders Jenbo
fd2a45ff9a
Engine.cpp ( #548 )
...
* Clean up DiabloAllocPtr
* Clean up mem_free_dbg
* Clean up GetDirection
* Clean up PlayInGameMovie
* 18 directions
7 years ago
Anders Jenbo
e795b6116a
Make use of atexit() C compatible ( #537 )
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Robin Eklind
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).
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
8 years ago
squidcc
49af056b14
Clean DrawAutomapType ( #299 )
...
cosmetic name corrections
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Dennis Duda
e8b53791d3
`DrawInv` is now binary exact.
8 years ago
Dennis Duda
16a576cd5b
Brought `GetLevelMTypes` very close to binary exact
8 years ago
galaxyhaxz
5ed2336e90
Fix types of animation data ( #176 )
8 years ago
Dennis Duda
df44956a78
Cleaned up InitMonsterTRN.
...
Including changed types used by that function.
8 years ago
galaxyhaxz
775ae59e18
Fix function signatures and others ( #158 )
...
Fix InitObjects, themes.cpp, names
8 years ago
galaxyhaxz
8f50c57141
Fix engine (objects always being lit) ( #132 )
...
Also refactored readme
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago
galaxyhaxz
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
8 years ago
galaxyhaxz
dde68ff89e
Add files via upload
8 years ago