Commit graph

2454 commits

Author SHA1 Message Date
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
rr-
aae917d7fc sound: pull MN_SFX_PLAY_INFO as SOUND_SLOT 2021-11-12 21:33:19 +01:00
rr-
5d4e893f07 sound: rename functions 2021-11-12 21:33:19 +01:00
rr-
aefcc47c96 mnsound: merge to sound 2021-11-12 21:33:19 +01:00
rr-
af767b58d1 sound: rename functions 2021-11-12 21:33:19 +01:00
rr-
9a57db99ab sound: drop return value 2021-11-12 21:33:19 +01:00
rr-
e7e65ed3e3 mnsound: declare possible functions as static 2021-11-12 21:33:19 +01:00
rr-
63e23dbcb8 mnsound: simplify mn_stop_sound_effect 2021-11-12 21:33:19 +01:00
rr-
10b6cf19dd mnsound: change signature to bool 2021-11-12 21:33:19 +01:00
rr-
0c490dcdd9 inject: remove variable macros 2021-11-12 21:33:19 +01:00
rr-
1a9aea4397 docs: mention customizable fog 2021-11-12 20:07:23 +01:00
rr-
19f032fbaa misc: address code review 2021-11-12 20:07:23 +01:00
rr-
ce2a12449f 3dsystem: support shallow and deep fogs 2021-11-12 20:07:23 +01:00
rr-
f938a2e6a5 hwr: rename HWR_ChangeWaterColor to HWR_SetWaterColor 2021-11-12 20:07:23 +01:00
rr-
4bec57ca6e hwr: add per-level fog settings
Closes #118, #219 and #220.
2021-11-12 20:07:23 +01:00
rr-
2981c35358 3dsystem: pull VIEW_NEAR, VIEW_FAR, DEPTH_Q_START, DEPTH_Q_END 2021-11-12 20:07:23 +01:00
rr-
b232d69dd8 vars: pull PhdNearZ, PhdFarZ and PhdViewDist 2021-11-12 20:07:23 +01:00
rr-
fd9bb5fac0 input, lara: improve tr3 sidesteps
Closes #190
2021-11-12 16:33:09 +01:00
rr-
1fdc2eb363
game/option: fix after bad merge 2021-11-12 16:09:52 +01:00
rr-
47395ac2f6 game/option: fix dummy option
Closes #217
2021-11-12 10:31:36 +01:00
rr-
9bcf8f6ae8 game/option: use bool 2021-11-12 10:31:36 +01:00
rr-
bb6946319a docs: mention adjustable brightness 2021-11-12 00:20:05 +01:00
rr-
982a2b4675 option: add adjustable ingame brightness 2021-11-12 00:20:05 +01:00
rr-
d606eec24a build: support local branches versioning
This improves the version output when compiling
on a branch that is not master.

Let's say we're on a branch called `audio_refactor`,
12 commits ahead of `master`.

Before the version would say:

    T1M 1.3.0

After this commit, the version would say:

    T1M 1.3.0-12-gf65378c
2021-11-11 18:21:08 +01:00
rr-
1e6d4aee25 game/overlay: replace static struct idiom with m_ 2021-11-11 18:00:27 +01:00
rr-
24794853ef text: drop static struct S idiom in favor of m_
We employ Hungarian notation that stands for module-specific global
variable.
2021-11-11 18:00:27 +01:00
rr-
2d373902f5 text: fix cleaning old text handles 2021-11-11 18:00:27 +01:00
rr-
68bd19cc86 vars: pull AmmoText, FPSText and VersionText 2021-11-11 18:00:27 +01:00
rr-
92959a4582 inv: remove text manipulation
These assignments might be an attempt to remove any overlay text before
HWR_CopyPicture(), but they do not work – when the player opens the
inventory, the text is captured on the bitmap. If we decide to tackle
this, it needs to happen another way.
2021-11-11 18:00:27 +01:00
rr-
ef6d87fb05 text: add simple destructors
Whenever someone calls Text_RemoveAll(), all of the pointers remembered
by the users of Text_Create() need to be invalidated. To make this
possible, currently every caller of Text_RemoveAll() needs to know of
all possible "dangling" pointers to invalidate. This is bad design.
Every Text_Create user should be responsible for its own cleanup. To
achieve a bit better design, we add a simple destructor – "on_remove" –
that the callers of Text_Create can hook into to invalidate their
pointers.
2021-11-11 18:00:27 +01:00
rr-
c5140f3637 text: simplify text allocation 2021-11-11 18:00:27 +01:00
rr-
a4c4cac149 text: refactor consts 2021-11-11 18:00:27 +01:00
rr-
701994e8e1 text: allocate strings on the stack 2021-11-11 18:00:27 +01:00
rr-
4e3cf53cd0 text: apply private state idiom 2021-11-11 18:00:27 +01:00
rr-
2fb0135a95 text: convert flags to a bitfield 2021-11-11 18:00:27 +01:00
rr-
1adc622826 text: make possible functions static 2021-11-11 18:00:27 +01:00