Anders Jenbo
95173539ce
Reorder effects.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
edcd92e012
Misc clean ups that missed last round
6 years ago
Anders Jenbo
cc280eeba3
Enable asserts in files that where cleaned
6 years ago
Anders Jenbo
c9db23de5b
Correct sfx_* names, can be seen in assert strings
6 years ago
Anders Jenbo
7db4ed749a
Apply more enums, defines and types
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Anders Jenbo
684d6b73f8
Correct ifdef
6 years ago
Anders Jenbo
1fc287e504
Use define to minimize ifdef in effects.cpp
6 years ago
Anders Jenbo
f1c216e688
Make player struct x/y fields match monster struct
6 years ago
Anders Jenbo
187a021b30
More documentation from sanctuary/notes ( #2026 )
6 years ago
galaxyhaxz
f89204e7dd
Fix function/var names (effects/sound)
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
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
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
qndel
847f69165d
[hellfire] stream_update bin exact
7 years ago
Anders Jenbo
10c33575ac
Clean ups from hellfire branch
7 years ago
Anders Jenbo
0abe56f006
[hellfire] RndSFX, stream_update and priv_sound_init
7 years ago
Robin Eklind
fab7f1b5fa
effects: rename monster_action_sounds to MonstSndChar
...
Rationale described in f609ea371d :
as included below:
Note, the PSX sym file does not seem to include the
original name for monster_action_sounds. However, it
does include the names for very similar global
variables used for players rather than monsters, so
from these we may infer a similar name for
monster_action_sounds.
In particular, ArmourChar, WepChar and CharChar are
used for player graphics. So, following the same naming
convention we arrive at MonstSndChar.
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Anders Jenbo
aa50489569
Clean up generated comments
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
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Anders Jenbo
26d7327b1f
Cleanup ( #1200 )
...
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
7 years ago
Anders Jenbo
f006952465
Apply sfx_flag to sgSFX
7 years ago
qndel
d2f12de6b8
sound_stop bin exact ( #1172 )
7 years ago
qndel
b94b79f8e2
RndSFX bin exact
7 years ago
galaxyhaxz
7fcbc7319c
Fix merged function `sound_update`
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
galaxyhaxz
5238265702
Implement assert support ( #791 )
7 years ago
Anders Jenbo
fda317a24e
Clean up storm/sound_update ( #663 )
7 years ago
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
7 years ago
Anders Jenbo
841f5af199
Compile effects.cpp and wave.cpp as C ( #530 )
...
* Correct SFileReadFile signature
* Compile as C
Source/effects.cpp
Source/wave.cpp
* Make diabloui.h C frindly
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
galaxyhaxz
24285a220f
WinMain+Direct file access from HDD ( #456 )
7 years ago
Anders Jenbo
0fb5c0bf9c
Additional tab indentation
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
8 years ago
Anders Jenbo
596f244f50
Align structured data tables
8 years ago
Anders Jenbo
87ef2f91e7
Format mostly cleaned files
8 years ago
Anders Jenbo
8e2d0df643
Clean up some bools
8 years ago
Anders Jenbo
46897e9c6e
Correct a couple of values ( #389 )
8 years ago
Anders Jenbo
226fbc68b0
effects_cleanup_sfx & stream_update ( #375 )
...
* effects_cleanup_sfx & stream_update
* effects_play_sound
* effect_is_playing, PlaySFX, PlaySfxLoc & effects_play_sound
8 years ago
Anders Jenbo
f269f4561b
PlaySFX_priv, stream_play ( #371 )
...
* PlaySFX_priv, stream_play
* Fix build warnings in player.cpp
* Clean up FreeMonsterSnd
* Added more enums and defines for sound and effects.
8 years ago
Anders Jenbo
5df6a0d771
Sound.cpp ( #353 )
...
* Clean up of sound.cpp
* Fix builds that don't support max()
8 years ago
Anders Jenbo
afbe7a5ffa
sfx_stop, InitMonsterSND, FreeEffects, PlayEffect and calc_snd_position
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
galaxyhaxz
fa64b2148d
Add defines [W.I.P] ( #160 )
8 years ago
galaxyhaxz
a336c38226
Fix random(idx,v) calls ( #157 )
8 years ago