NSSpraylogo: Handle vid_reload's gracefully
This commit is contained in:
parent
cdf9efd0ba
commit
1e0534c922
2 changed files with 13 additions and 11 deletions
|
@ -88,7 +88,7 @@ CSEv_Spraylogo(void)
|
|||
#endif
|
||||
|
||||
#ifdef CLIENT
|
||||
class CSpraylogo
|
||||
class NSSpraylogo:NSEntity
|
||||
{
|
||||
vector m_vecColor;
|
||||
vector m_vecPosition;
|
||||
|
@ -99,7 +99,7 @@ class CSpraylogo
|
|||
int m_iInitialized;
|
||||
bool m_bMonochrome;
|
||||
|
||||
void(void) CSpraylogo;
|
||||
void(void) NSSpraylogo;
|
||||
virtual float(void) predraw;
|
||||
virtual void(void) RendererRestarted;
|
||||
};
|
||||
|
@ -128,13 +128,13 @@ const string g_spray_mat_0 = \
|
|||
"}";
|
||||
|
||||
void
|
||||
CSpraylogo::RendererRestarted(void)
|
||||
NSSpraylogo::RendererRestarted(void)
|
||||
{
|
||||
m_iInitialized = false;
|
||||
m_iInitialized = FALSE;
|
||||
}
|
||||
|
||||
float
|
||||
CSpraylogo::predraw(void)
|
||||
NSSpraylogo::predraw(void)
|
||||
{
|
||||
int iSize;
|
||||
|
||||
|
@ -184,18 +184,19 @@ CSpraylogo::predraw(void)
|
|||
}
|
||||
|
||||
void
|
||||
CSpraylogo::CSpraylogo(void)
|
||||
NSSpraylogo::NSSpraylogo(void)
|
||||
{
|
||||
// boo
|
||||
m_vecColor = [1,1,1];
|
||||
m_bMonochrome = false;
|
||||
isCSQC = true;
|
||||
}
|
||||
|
||||
void
|
||||
Spray_Parse(void)
|
||||
{
|
||||
spawnfunc_CSpraylogo();
|
||||
CSpraylogo spSelf =(CSpraylogo)self;
|
||||
spawnfunc_NSSpraylogo();
|
||||
NSSpraylogo spSelf =(NSSpraylogo)self;
|
||||
spSelf.drawmask = MASK_ENGINE;
|
||||
spSelf.m_vecPosition[0] = readcoord();
|
||||
spSelf.m_vecPosition[1] = readcoord();
|
||||
|
|
|
@ -35,7 +35,8 @@
|
|||
void
|
||||
_NSLog(string msg)
|
||||
{
|
||||
print(sprintf("%f %s\n", time, msg));
|
||||
if (cvar("g_developer") == 1)
|
||||
print(sprintf("%f %s\n", time, msg));
|
||||
}
|
||||
#define NSLog(x, ...) _NSLog(sprintf(x, __VA_ARGS__))
|
||||
|
||||
|
@ -184,9 +185,9 @@ __wrap string
|
|||
precache_model(string m)
|
||||
{
|
||||
#ifdef CLIENT
|
||||
NSLog("^3Client precaching model ^7%s\n", m);
|
||||
NSLog("^3Client precaching model ^7%s", m);
|
||||
#else
|
||||
NSLog("^3Server precaching model ^7%s\n", m);
|
||||
NSLog("^3Server precaching model ^7%s", m);
|
||||
#endif
|
||||
return prior(m);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue