initialization of myfont string and better lag check

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5632 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-08-16 02:27:53 +00:00
parent 1456459a46
commit 6f1aaa0d50
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ COMMANDN(font, newfont, ARG_8STR);
COMMAND(fontchar, ARG_4INT);
COMMAND(fontskip, ARG_1INT);
string myfont;
string myfont = "default";
void newsetfont(const char *name)
{
if ( setfont(name) ) copystring(myfont,name);
+4 -2
View File
@@ -258,7 +258,8 @@ struct client // server side version of "dynent" type
int mapcollisions, farpickups;
enet_uint32 bottomRTT;
medals md;
bool upspawnp, lag;
bool upspawnp;
int lag;
vec spawnp;
int nvotes;
int input, inputmillis;
@@ -295,7 +296,8 @@ struct client // server side version of "dynent" type
at3_lastforce = eff_score = 0;
mapcollisions = farpickups = 0;
md.reset();
upspawnp = lag = false;
upspawnp = false;
lag = 0;
spawnp = vec(-1e10f, -1e10f, -1e10f);
lmillis = ldt = spj = 0;
ffire = 0;