NetHack / NetHack

Official NetHack Git Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initializing the struct console_t

Meklon2007 opened this issue · comments

Hello, it looks like there is an error when initializing the struct console_t structure (in last version NH on the github).
in consoletty.c when not defined VIRTUAL_TERMINAL_SEQUENCES fields are not initialized correctly.
Examples of obvious field mismatch are shown in the picture below:
struct

There is also minor warning with const:
in sndprocs.h:
struct sound_procs {.....
void (*sound_play_usersound)(char *filename, int32_t volume, int32_t idx);
.....}
in fmod.c:
static void fmod_play_usersound(const char *, int32_t, int32_t);

A fix is in the pipeline.