hopefully this fixes q2 sbar with viewsize somewhat

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@899 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-03-15 03:25:37 +00:00
parent 7af6a2b9e7
commit c324d0a3b8

View file

@ -367,8 +367,8 @@ void Sbar_ExecuteLayoutString (char *s)
if (!s[0]) if (!s[0])
return; return;
x = 0; x = sbar_rect.x;
y = 0; y = sbar_rect.y;
width = 3; width = 3;
while (s) while (s)
@ -377,38 +377,38 @@ void Sbar_ExecuteLayoutString (char *s)
if (!strcmp(com_token, "xl")) if (!strcmp(com_token, "xl"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
x = atoi(com_token); x = sbar_rect.x + atoi(com_token);
continue; continue;
} }
if (!strcmp(com_token, "xr")) if (!strcmp(com_token, "xr"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
x = sbar_rect.width + atoi(com_token); x = sbar_rect.x + sbar_rect.width + atoi(com_token);
continue; continue;
} }
if (!strcmp(com_token, "xv")) if (!strcmp(com_token, "xv"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
x = sbar_rect.width/2 - 160 + atoi(com_token); x = sbar_rect.x + sbar_rect.width/2 - 160 + atoi(com_token);
continue; continue;
} }
if (!strcmp(com_token, "yt")) if (!strcmp(com_token, "yt"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
y = atoi(com_token); y = sbar_rect.y + atoi(com_token);
continue; continue;
} }
if (!strcmp(com_token, "yb")) if (!strcmp(com_token, "yb"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
y = sbar_rect.height + atoi(com_token); y = sbar_rect.y + sbar_rect.height + atoi(com_token);
continue; continue;
} }
if (!strcmp(com_token, "yv")) if (!strcmp(com_token, "yv"))
{ {
s = COM_Parse (s); s = COM_Parse (s);
y = sbar_rect.height/2 - 120 + atoi(com_token); y = sbar_rect.y + sbar_rect.height/2 - 120 + atoi(com_token);
continue; continue;
} }