- fixed a few typos and uninitialized variables.

This commit is contained in:
Christoph Oelckers 2020-01-03 17:08:41 +01:00
parent 78e7b2dd8c
commit c82d6de6c3
5 changed files with 4 additions and 4 deletions

View file

@ -387,7 +387,6 @@ static void PrecacheSounds(void)
void PreloadCache(void)
{
char tempbuf[128];
if (gDemo.at1)
return;
PrecacheSounds();

View file

@ -382,7 +382,7 @@ void UpdateJoystickMenu(IJoystickConfig *selected)
{
it = new FOptionMenuItemStaticText("$JOYMNU_DISABLED1");
opt->mItems.Push(it);
it = new FOptionMenuItemStaticText("$JOYMNU_DISABLED1");
it = new FOptionMenuItemStaticText("$JOYMNU_DISABLED2");
opt->mItems.Push(it);
}
}

View file

@ -23,6 +23,7 @@ char(&_ArraySizeHelper(T(&array)[N]))[N];
bool FileExists (const char *filename);
bool DirExists(const char *filename);
bool DirEntryExists (const char *pathname, bool *isdir = nullptr);
bool GetFileInfo(const char* pathname, size_t* size, time_t* time);
extern FString progdir;

View file

@ -103,7 +103,7 @@ private:
//char Name[1]; // + length of name
};
FConfigSection *Sections;
FConfigSection* Sections = nullptr;
FConfigSection **LastSectionPtr;
FConfigSection *CurrentSection;
FConfigEntry *CurrentEntry;

View file

@ -1088,7 +1088,7 @@ OptionValue "AimMode"
{
0, "$OPTVAL_NEVER"
1, "$OPTVAL_ALWAYS"
2, "$OPTRAL_HITSCAN"
2, "$OPTVAL_HITSCAN"
}
OptionValue "RunMode"