mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-10 11:11:51 +00:00
- minor cleanup.
This commit is contained in:
parent
8e6bdd72fa
commit
c596095fe0
7 changed files with 7 additions and 7 deletions
|
@ -58,12 +58,12 @@ EXTERN_CVAR(Float, snd_musicvolume)
|
||||||
|
|
||||||
inline float AmplitudeTodB(float amplitude)
|
inline float AmplitudeTodB(float amplitude)
|
||||||
{
|
{
|
||||||
return 20.0f * log10(amplitude);
|
return 20.0f * log10f(amplitude);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline float dBToAmplitude(float dB)
|
inline float dBToAmplitude(float dB)
|
||||||
{
|
{
|
||||||
return pow(10.0f, dB / 20.0f);
|
return powf(10.0f, dB / 20.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //__I_MUSIC_H__
|
#endif //__I_MUSIC_H__
|
||||||
|
|
|
@ -51,8 +51,8 @@
|
||||||
#include <zmusic.h>
|
#include <zmusic.h>
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
#include "gain_analysis.h"
|
#include "gain_analysis.h"
|
||||||
#include "gameconfigfile.h"
|
|
||||||
#include "i_specialpaths.h"
|
#include "i_specialpaths.h"
|
||||||
|
#include "configfile.h"
|
||||||
|
|
||||||
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
|
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,6 @@
|
||||||
#define RIGHTMARGIN 8
|
#define RIGHTMARGIN 8
|
||||||
#define BOTTOMARGIN 12
|
#define BOTTOMARGIN 12
|
||||||
|
|
||||||
// todo: move these variables to a better place.
|
|
||||||
extern bool AppActive;
|
extern bool AppActive;
|
||||||
|
|
||||||
CUSTOM_CVAR(Int, con_buffersize, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
CUSTOM_CVAR(Int, con_buffersize, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "i_interface.h"
|
#include "i_interface.h"
|
||||||
#include "st_start.h"
|
#include "st_start.h"
|
||||||
#include "gamestate.h"
|
#include "gamestate.h"
|
||||||
|
#include "startupinfo.h"
|
||||||
|
|
||||||
static_assert(sizeof(void*) == 8, "32 builds are not supported");
|
static_assert(sizeof(void*) == 8, "32 builds are not supported");
|
||||||
|
|
||||||
|
@ -14,4 +15,6 @@ float menuBlurAmount;
|
||||||
bool AppActive = true;
|
bool AppActive = true;
|
||||||
int chatmodeon;
|
int chatmodeon;
|
||||||
gamestate_t gamestate = GS_STARTUP;
|
gamestate_t gamestate = GS_STARTUP;
|
||||||
|
bool ToggleFullscreen;
|
||||||
|
|
||||||
|
FStartupInfo GameStartupInfo;
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "bitmap.h"
|
#include "bitmap.h"
|
||||||
|
#include "zstring.h"
|
||||||
|
|
||||||
class FGameTexture;
|
class FGameTexture;
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,6 @@ FTextureID Advisory;
|
||||||
FTextureID Page;
|
FTextureID Page;
|
||||||
const char *Subtitle;
|
const char *Subtitle;
|
||||||
bool nospriterename;
|
bool nospriterename;
|
||||||
FStartupInfo GameStartupInfo;
|
|
||||||
FString lastIWAD;
|
FString lastIWAD;
|
||||||
int restart = 0;
|
int restart = 0;
|
||||||
extern bool AppActive;
|
extern bool AppActive;
|
||||||
|
|
|
@ -46,6 +46,4 @@ int NextSkill = -1;
|
||||||
|
|
||||||
int SinglePlayerClass[MAXPLAYERS];
|
int SinglePlayerClass[MAXPLAYERS];
|
||||||
|
|
||||||
bool ToggleFullscreen;
|
|
||||||
|
|
||||||
FString LumpFilterIWAD;
|
FString LumpFilterIWAD;
|
||||||
|
|
Loading…
Reference in a new issue