ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.162 by root, Fri Oct 13 19:23:08 2006 UTC vs.
Revision 1.163 by root, Wed Oct 18 12:53:45 2006 UTC

1452 int vx, vy; 1452 int vx, vy;
1453 int x, y, z; 1453 int x, y, z;
1454 int last_name; 1454 int last_name;
1455 mapface face; 1455 mapface face;
1456 1456
1457 vx = self->x + self->w / 2 - sw / 2 - shift_x; 1457 vx = self->x + ((self->w - sw) >> 1) - shift_x;
1458 vy = self->y + self->h / 2 - sh / 2 - shift_y; 1458 vy = self->y + ((self->h - sh) >> 1) - shift_y;
1459 1459
1460 /* 1460 /*
1461 int vx = self->vx = self->w >= sw 1461 int vx = self->vx = self->w >= sw
1462 ? self->x + (self->w - sw) / 2 1462 ? self->x + (self->w - sw) / 2
1463 : MIN (self->x, MAX (self->x + self->w - sw + 1, self->vx)); 1463 : MIN (self->x, MAX (self->x + self->w - sw + 1, self->vx));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines