Cleanup
Remarks: 1. Changed order in keycmds lets to keep alphabetical order in saved.cfg . 2. Earlier long information in docs about arguments of command could be invisible for low aspect ratio (example: "weapon" command), now it's fixed.
This commit is contained in:
@@ -145,7 +145,7 @@ int rendercommand(int x, int y, int w)
|
||||
|
||||
vector<keym> keyms;
|
||||
|
||||
const char *keycmds[keym::NUMACTIONS] = { "bind", "specbind", "editbind" };
|
||||
const char *keycmds[keym::NUMACTIONS] = { "bind", "editbind", "specbind" };
|
||||
inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
|
||||
|
||||
void keymap(int *code, char *key)
|
||||
|
||||
+1
-1
@@ -532,7 +532,7 @@ void renderdoc(int x, int y, int doch)
|
||||
{
|
||||
docargument *a = &ident->arguments[j];
|
||||
if(!a) continue;
|
||||
formatstring(doclines.add(newstringbuf()))("~\f%d%-8s%s %s%s%s", j == arg ? 4 : 5, a->token, a->desc,
|
||||
formatstring(doclines.add(newstringbuf()))("\f%d%-8s%s %s%s%s", j == arg ? 4 : 5, a->token, a->desc,
|
||||
a->values ? "(" : "", a->values ? a->values : "", a->values ? ")" : "");
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -73,8 +73,8 @@ struct keym
|
||||
enum
|
||||
{
|
||||
ACTION_DEFAULT = 0,
|
||||
ACTION_SPECTATOR,
|
||||
ACTION_EDITING,
|
||||
ACTION_SPECTATOR,
|
||||
NUMACTIONS
|
||||
};
|
||||
|
||||
|
||||
@@ -1054,7 +1054,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
|
||||
if(!m_botmode) draw_textf("SCROLL to change player", left - (text_width("SCROLL to change player") + FONTH/2), top+80);
|
||||
}
|
||||
|
||||
void renderhudtexturepreviews();
|
||||
extern void renderhudtexturepreviews();
|
||||
if(editmode) renderhudtexturepreviews();
|
||||
|
||||
/* * /
|
||||
|
||||
@@ -374,7 +374,7 @@ void draw_text(const char *str, int left, int top, int r, int g, int b, int a, i
|
||||
glBegin(GL_QUADS);
|
||||
glColor4ub(color.x, color.y, color.z, a);
|
||||
TEXTSKELETON
|
||||
glEnd();
|
||||
glEnd();
|
||||
if(cursor >= 0)
|
||||
{
|
||||
if(cx == INT_MIN) { cx = x; cy = y; }
|
||||
|
||||
Reference in New Issue
Block a user