no sstring
This commit is contained in:
parent
a30438b0c5
commit
78f21dbd86
@ -111,8 +111,6 @@ void hack::Hk_PaintTraverse(void* p, unsigned int vp, bool fr, bool ar) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Settings.bNoVisuals->GetBool()) return;
|
|
||||||
|
|
||||||
if (!draw::width || !draw::height) {
|
if (!draw::width || !draw::height) {
|
||||||
interfaces::engineClient->GetScreenSize(draw::width, draw::height);
|
interfaces::engineClient->GetScreenSize(draw::width, draw::height);
|
||||||
}
|
}
|
||||||
@ -129,6 +127,8 @@ void hack::Hk_PaintTraverse(void* p, unsigned int vp, bool fr, bool ar) {
|
|||||||
g_Settings.bInvalid = true;
|
g_Settings.bInvalid = true;
|
||||||
}
|
}
|
||||||
if (g_Settings.bInvalid) return;
|
if (g_Settings.bInvalid) return;
|
||||||
|
if (g_Settings.bNoVisuals->GetBool()) return;
|
||||||
|
|
||||||
if (draw::panel_top == vp) {
|
if (draw::panel_top == vp) {
|
||||||
ResetStrings();
|
ResetStrings();
|
||||||
if (g_Settings.bShowLogo->GetBool()) {
|
if (g_Settings.bShowLogo->GetBool()) {
|
||||||
|
@ -741,8 +741,8 @@ void EndPrediction() {
|
|||||||
interfaces::gvars->frametime = oldFrametime;
|
interfaces::gvars->frametime = oldFrametime;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
sstring strfmt(const char* fmt, ...) {
|
char* strfmt(const char* fmt, ...) {
|
||||||
sstring result(1024);
|
char* result = new char[1024];
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start(list, fmt);
|
va_start(list, fmt);
|
||||||
vsprintf(result, fmt, list);
|
vsprintf(result, fmt, list);
|
||||||
|
@ -16,7 +16,6 @@ class CUserCmd;
|
|||||||
class CCommand;
|
class CCommand;
|
||||||
struct player_info_s;
|
struct player_info_s;
|
||||||
class Vector;
|
class Vector;
|
||||||
class sstring;
|
|
||||||
|
|
||||||
#define PI 3.14159265358979323846f
|
#define PI 3.14159265358979323846f
|
||||||
#define RADPI 57.295779513082f
|
#define RADPI 57.295779513082f
|
||||||
@ -70,7 +69,7 @@ bool GetProjectileData(CachedEntity* weapon, float& speed, float& gravity);
|
|||||||
bool IsVectorVisible(Vector a, Vector b);
|
bool IsVectorVisible(Vector a, Vector b);
|
||||||
relation GetRelation(CachedEntity* ent); // TODO new relations
|
relation GetRelation(CachedEntity* ent); // TODO new relations
|
||||||
bool IsSentryBuster(CachedEntity* ent);
|
bool IsSentryBuster(CachedEntity* ent);
|
||||||
sstring strfmt(const char* fmt, ...);
|
char* strfmt(const char* fmt, ...);
|
||||||
// TODO move that to weaponid.h
|
// TODO move that to weaponid.h
|
||||||
bool IsAmbassador(CachedEntity* ent);
|
bool IsAmbassador(CachedEntity* ent);
|
||||||
|
|
||||||
|
@ -8,15 +8,17 @@
|
|||||||
#ifndef SSTRING_H_
|
#ifndef SSTRING_H_
|
||||||
#define SSTRING_H_
|
#define SSTRING_H_
|
||||||
|
|
||||||
class sstring {
|
//typedef char* sstring;
|
||||||
|
|
||||||
|
/*class sstring {
|
||||||
public:
|
public:
|
||||||
inline sstring() { length = 0; p_String = 0; };
|
inline sstring() { length = 0; p_String = 0; };
|
||||||
inline sstring(int length) { this->length = length; p_String = new char[length]; }
|
inline sstring(int length) { this->length = length; p_String = new char[length]; }
|
||||||
inline ~sstring() { delete [] p_String; }
|
inline ~sstring() { if (p_String) delete [] p_String; }
|
||||||
inline operator const char*() const { return p_String; };
|
inline operator const char*() const { return p_String; };
|
||||||
inline operator char*() const { return (char*)p_String; }
|
inline operator char*() const { return (char*)p_String; }
|
||||||
const char* p_String;
|
const char* p_String;
|
||||||
int length;
|
int length;
|
||||||
};
|
};*/
|
||||||
|
|
||||||
#endif /* SSTRING_H_ */
|
#endif /* SSTRING_H_ */
|
||||||
|
Reference in New Issue
Block a user