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
1 changed files with 8 additions and 8 deletions

View File

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