mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- silenced some warnings.
This commit is contained in:
parent
d7a47b2f3a
commit
0c6e2f0c9e
3 changed files with 4 additions and 3 deletions
|
@ -156,7 +156,7 @@ void AddGenericVideo(DObject* runner, const FString& fn, int soundid, int fps)
|
|||
|
||||
int CutsceneDef::GetSound()
|
||||
{
|
||||
int id;
|
||||
int id = -1;
|
||||
if (soundName.IsNotEmpty()) id = soundEngine->FindSound(soundName);
|
||||
if (id <= 0) id = soundEngine->FindSoundByResID(soundID);
|
||||
return id;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include "s_soundinternal.h"
|
||||
#include "gamestate.h"
|
||||
#include "screenjob.h"
|
||||
#include "gamecontrol.h"
|
||||
|
||||
struct CutsceneDef;
|
||||
struct MapRecord;
|
||||
|
|
|
@ -553,7 +553,7 @@ class ScreenJobRunner : Object
|
|||
let font = generic_ui? NewSmallFont : SmallFont;
|
||||
|
||||
let linelen = hudwidth < 640 ? hudwidth * 0.9 - 40 : 560;
|
||||
let lines = font.BreakLines(text, linelen);
|
||||
let lines = font.BreakLines(text, int(linelen));
|
||||
|
||||
int count = lines.Count();
|
||||
int height = 20 + font.GetHeight() * count;
|
||||
|
@ -573,7 +573,7 @@ class ScreenJobRunner : Object
|
|||
y = hudheight * 0.9 - height;
|
||||
if (y < 0) y = 0;
|
||||
|
||||
Screen.Dim(0, 0.5f, x * hscale, y * vscale, w * hscale, height * vscale);
|
||||
Screen.Dim(0, 0.5f, int(x * hscale), int(y * vscale), int(w * hscale), int(height * vscale));
|
||||
x += 20;
|
||||
y += 10;
|
||||
|
||||
|
|
Loading…
Reference in a new issue