Skip to content

Commit aa24d0f

Browse files
committed
fix: heavylog arg types
1 parent a5e6cd7 commit aa24d0f

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

linux.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ src/config_objects.c \
7272
src/config_players.c \
7373
src/config_powerhands.c \
7474
src/config_rules.c \
75+
src/config_sounds.c \
7576
src/config_settings.c \
7677
src/config_slabsets.c \
7778
src/config_strings.c \
@@ -182,6 +183,7 @@ src/lua_api_player.c \
182183
src/lua_api_room.c \
183184
src/lua_api_things.c \
184185
src/lua_api_slabs.c \
186+
src/lua_api_sound.c \
185187
src/lua_base.c \
186188
src/lua_cfg_funcs.c \
187189
src/lua_params.c \
@@ -249,6 +251,7 @@ src/roomspace_detection.c \
249251
src/scrcapt.c \
250252
src/slab_data.c \
251253
src/sounds.c \
254+
src/sound_manager.cpp \
252255
src/spdigger_stack.c \
253256
src/spritesheet.cpp \
254257
src/tasks_list.c \

src/creature_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void play_creature_sound(struct Thing *thing, long snd_idx, long priority, long
313313
sample_idx = crsound->index + i; // Regular positive indices
314314
}
315315

316-
SYNCDBG(18,"Playing sample %ld (sound type %ld, index %ld) for creature %d",
316+
SYNCDBG(18,"Playing sample %d (sound type %ld, index %d) for creature %d",
317317
sample_idx, snd_idx, crsound->index, thing->model);
318318

319319
if ( use_flags ) {

src/lua_api_sound.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
*/
1818
/******************************************************************************/
1919
#include "pre_inc.h"
20+
#include <lua.h>
21+
#include <lauxlib.h>
22+
#include <lualib.h>
2023
#include "lua_api_sound.h"
2124
#include "sound_manager.h"
2225
#include "bflib_sound.h"
23-
24-
#ifdef __cplusplus
25-
extern "C" {
26-
#endif
26+
#include "post_inc.h"
2727

2828
/******************************************************************************/
2929
/**
@@ -238,8 +238,4 @@ void register_lua_sound_api(lua_State* L) {
238238
lua_pushinteger(L, 1);
239239
lua_setglobal(L, "SOUND_PRIORITY_LOW");
240240
}
241-
242-
#ifdef __cplusplus
243-
}
244-
#endif
245241
/******************************************************************************/

0 commit comments

Comments
 (0)