luk
f98651d1b8
implement variable game speed #525
6 years ago
Joel Falcou
c4223d4c29
Per file basis use of extern C
6 years ago
Joel Falcou
64d26a7934
Sanitize use of namespace
...
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
6 years ago
Anders Jenbo
346c0949e7
Correct seed tables
6 years ago
Anders Jenbo
1340192b59
Correct array sizes
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Manuel Alfayate Corchete
03662be548
Remove atexit() calls and implement a diablo_deinit() function instea… ( #694 )
...
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
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
Robin Eklind
dc4aec766e
Fix build, move DEVILUTION_END_NAMESPACE from diablo.h to all.h
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
Anders Jenbo
40d272241b
Implement --data-dir for setting mpq path
...
This also implements a much cleaner version of diablo_parse_flags
Fixes #219
6 years ago
Anders Jenbo
40cea40aa4
Remove windows call types collisions
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
7 years ago
Anders Jenbo
9146e3ea35
Enable FPS meter for releases
7 years ago
Gleb Mazovetskiy
df8d7a1f46
Compatibility with SDL v2.0.3
...
RG350 and GCW0 devices have an ancient version of SDL2.
7 years ago
Gleb Mazovetskiy
426c246535
Simplify SDL1/2 palette handling
...
SDL 1 and 2 handle surface palettes very differently.
This adds a few compatibility functions that do the right thing
depending on the SDL version.
7 years ago
qndel
7129558d0b
apply enums
7 years ago
Anders Jenbo
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Gleb Mazovetskiy
43a27e6f50
Also link SDL int devilution (Source)
7 years ago
Anders Jenbo
88813c4042
Strip some now unused parts of miniwin and windows api
7 years ago
Anders Jenbo
5b2a878945
Remove check for multiple application instances
...
(it's currently not working any way)
7 years ago
Anders Jenbo
cf359d9ea2
Remove server chat
7 years ago
Anders Jenbo
4e1e62d6e9
Remove inactive error logging
...
Not easy to port, little value, not in Mac port
7 years ago
Robin Eklind
57213a4faa
update names as per @galaxyhaxz suggestion, use info from assert strings
7 years ago
Robin Eklind
fe839e90d9
diablo: rename spszMsgTbl and spszMsgKeyTbl to NetMsgStr and NetMsgHotKey
...
Rationale described in sanctuary/notes@3cd6417cdfafba340145939c2054ec614e1bd33e
as included below:
Infer the name of NetMsgStr and NetMsgHotKey from the
PSX debug names of:
char *PanBtnHotKey[8];
unsigned long PanBtnStr[8];
Note, the previous use of spsz hungarian notation has been removed
since searching for "spsz" gave no results in the merged output of
PSX debug info: https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/_dump_merge_c_
7 years ago
Anders Jenbo
9d3ce818f0
Correct BOOLS
7 years ago
Anders Jenbo
aa50489569
Clean up generated comments
7 years ago
Anders Jenbo
dc4f0572f6
Remove unused variables
7 years ago
Anders Jenbo
f71471eab7
Correct types related to glSeedTbl
...
Reference:
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/global_0.cpp#L2431
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l1.cpp#L542
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l2.cpp#L538
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l3.cpp#L499
https://github.com/diasurgical/scalpel/blob/master/psx/_dump_/3/_dump_c_src_/diabpsx/source/drlg_l4.cpp#L484
7 years ago
galaxyhaxz
5e10dcb912
diablo_reload_proc & Xiaolin Wu ref
7 years ago
Anders Jenbo
a5c4efa8c3
Remove alignment hack
7 years ago
galaxyhaxz
610580625e
Split data from files
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
508a653a3d
the big PR of the day
7 years ago
Anders Jenbo
7ea77e8d56
Clean up SpawnHealer
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
galaxyhaxz
205a370f22
Cleanup Diablo.cpp
7 years ago
Xadhoom
005e4f911a
Fixes and remove unused stuff
7 years ago
Anders Jenbo
74e1d42f1c
Clarify some variable names
7 years ago
Anders Jenbo
7e3889cc0b
Clarify some variable names
7 years ago
Anders Jenbo
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
47bf82b059
C compatability from a-d ( #518 )
7 years ago
galaxyhaxz
040b4b0cc9
Cleanup game_loop
7 years ago
galaxyhaxz
51d5793e08
Cleanup LeftMouseCmd
7 years ago
Anders Jenbo
ab3a6208d2
Use "BOOLEAN" instead of "bool"
...
bool is not defined in C
7 years ago
galaxyhaxz
bace152240
Fix tail functions ( #463 )
7 years ago
galaxyhaxz
d9a285327f
StartGame and PressEscKey ( #461 )
7 years ago
galaxyhaxz
b3fdda7c18
GM_Game+others ( #458 )
7 years ago
galaxyhaxz
f1b129d84d
Cleanup DisableInputWndProc ( #459 )
7 years ago