rr-
0e678cd282
s/ati: simplify loader
2021-11-19 00:21:30 +01:00
rr-
05314452d2
s/*: prefix filenames with s_
...
When a file `specific/foo.c` does `#include "bar.h"`, it refers to
`specific/bar.h` instead of `bar.h`. Rather than doing one-off
exceptions like `smain.c`, we apply uniform approach and prefix all
files in `specific/` with `s_`, mainly due to their universal naming.
2021-11-17 19:56:46 +01:00
rr-
1e96e94625
s/music: improve error logging
2021-11-17 11:52:33 +01:00
rr-
85be75306f
s/sound: pull DSound
2021-11-17 11:52:33 +01:00
rr-
730bcf09fd
s/music: fix typo
2021-11-17 11:52:33 +01:00
rr-
1634edcbfd
game/draw: use ABS macro over abs()
2021-11-16 23:24:19 +01:00
rr-
2bc45f5374
g/effects/earthquake: fix include name
2021-11-16 22:32:25 +01:00
rr-
802098e1bd
g/overlay: fix include name
2021-11-16 22:31:56 +01:00
rr-
aed3d26cae
memory: refactor memory allocators
2021-11-16 21:46:38 +01:00
rr-
89a12b6f97
build: switch to meson
2021-11-16 02:02:45 +01:00
rr-
f3009ee8e5
cosmetics: remove stray semicolon
2021-11-16 02:02:45 +01:00
rr-
9e95a5af06
cosmetics: fix REQUEST_INFO partial initialization
2021-11-16 02:02:45 +01:00
rr-
62adbcf7d1
cosmetics: fix sign comparison warnings
2021-11-16 02:02:45 +01:00
rr-
9ec7a9366a
dynarray: remove
...
It was unused.
2021-11-16 02:02:45 +01:00
rr-
f9ac486ad8
objects/pickup: make pickup radius broader
...
In TR1 and TR2, possibly in the later games too, Lara has a larger
pickup radius if she's facing away from the item. This is
counter-intuitive. This commit adjusts it so that the radius is the same
regardless of her orientation in reference to the collectibles.
Closes #195
2021-11-16 01:28:23 +01:00
rr-
d9c98692dd
drop static struct S idiom in favor of m_
2021-11-12 21:33:19 +01:00
rr-
689c76f952
sound: rename AdjustVolume to SetVolume
2021-11-12 21:33:19 +01:00
rr-
c017499985
sound: pull SoundMasterVolume
2021-11-12 21:33:19 +01:00
rr-
8cfc10eef8
misc: apply private state idiom
2021-11-12 21:33:19 +01:00
rr-
d1f4b84db2
music: pull MusicTrack and MusicLoop
2021-11-12 21:33:19 +01:00
rr-
c8d60c7649
s/sound: rename globals
2021-11-12 21:33:19 +01:00
rr-
2958774e26
s/music: rename globals
2021-11-12 21:33:19 +01:00
rr-
e2972b3613
music: pull MCIDeviceID and AuxDeviceID
2021-11-12 21:33:19 +01:00
rr-
c8c32de831
sound+s/sound: move static functions early
2021-11-12 21:33:19 +01:00
rr-
cafb0cc6d3
sound: know the max volume
2021-11-12 21:33:19 +01:00
rr-
df52d0c60c
s/sound: remove unnecessary proxies
...
Specific code should be kept to minimum. All the eyecandy goes to game/.
2021-11-12 21:33:19 +01:00
rr-
4d4e38bd48
s/sound: use bool
2021-11-12 21:33:19 +01:00
rr-
da9a0b223c
music: use bool
2021-11-12 21:33:19 +01:00
rr-
a47c8ee770
s/music: use bool
2021-11-12 21:33:19 +01:00
rr-
6be7ba55fa
s/music: remove extra set volume call
...
IMO it's not needed as S_Music_AdjustVolume does the job just fine.
2021-11-12 21:33:19 +01:00
rr-
3b736b1adb
music: simplify volume adjusting
2021-11-12 21:33:19 +01:00
rr-
f31b288f63
music: move game logic from s/music
2021-11-12 21:33:19 +01:00
rr-
9dfb84a06a
music: proxy s/music
2021-11-12 21:33:19 +01:00
rr-
06673856c7
s/music: encapsulate functions
2021-11-12 21:33:19 +01:00
rr-
c3854abf85
s/music: rename functions
2021-11-12 21:33:19 +01:00
rr-
3c57028f57
s/music: rename from sndpc
2021-11-12 21:33:19 +01:00
rr-
fdf71b1bed
s/sound: encapsulate internals
2021-11-12 21:33:19 +01:00
rr-
0dcf9d1af2
s/sound: proxy specific routines through game
2021-11-12 21:33:19 +01:00
rr-
74ca486582
s/sound: rename functions
2021-11-12 21:33:19 +01:00
rr-
b456aae28d
s/sound: move sound routines from sndpc
2021-11-12 21:33:19 +01:00
rr-
a45b6706d6
sound: add Sound_StopAllSamples
2021-11-12 21:33:19 +01:00
rr-
6fcc66236a
sound: simplify Sound_AdjustMasterVolume
2021-11-12 21:33:19 +01:00
rr-
effcce99dd
sound: rename global variables
2021-11-12 21:33:19 +01:00
rr-
63ad67c66c
sound: remove unused SOUND_FLAG_NO_REVERB
2021-11-12 21:33:19 +01:00
rr-
09412fcc85
vars: inline SOUND_INVALID_HANDLE
2021-11-12 21:33:19 +01:00
rr-
4af2b52c6f
sound: reduce indentation in Sound_UpdateEffects
2021-11-12 21:33:19 +01:00
rr-
79eebcbc1e
sound: rename misc constants
2021-11-12 21:33:19 +01:00
rr-
9a0d0611dc
sound: rename SAMPLE_FLAG; put to types.h
2021-11-12 21:33:19 +01:00
rr-
84e99361ae
sound: rename SOUND_FLAG constants
2021-11-12 21:33:19 +01:00
rr-
db93de03ba
sound: rename SOUND_MODE constants
2021-11-12 21:33:19 +01:00