summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cf5edea)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6045
d7cf8633-e32d-0410-b094-
e92efae38249
if (!cls.qw_downloadname[0])
return;
dpsnprintf(temp, sizeof(temp), "Downloading %s ... %3i%%\n", cls.qw_downloadname, cls.qw_downloadpercent);
if (!cls.qw_downloadname[0])
return;
dpsnprintf(temp, sizeof(temp), "Downloading %s ... %3i%%\n", cls.qw_downloadname, cls.qw_downloadpercent);
+ len = (int)strlen(temp);
x = (vid_conwidth.integer - len*size) / 2;
y = vid_conheight.integer - size;
DrawQ_Fill(0, y, vid_conwidth.integer, size, 0, 0, 0, 0.5, 0);
x = (vid_conwidth.integer - len*size) / 2;
y = vid_conheight.integer - size;
DrawQ_Fill(0, y, vid_conwidth.integer, size, 0, 0, 0, 0.5, 0);
out = send+4;
send[0] = send[1] = send[2] = send[3] = 0xff;
out = send+4;
send[0] = send[1] = send[2] = send[3] = 0xff;
for (i=0 ; i<l ; i++)
{
if (out >= send + sizeof(send) - 1)
for (i=0 ; i<l ; i++)
{
if (out >= send + sizeof(send) - 1)
frac = pdist / (pdist - ndist);
if (frontcount < outfrontmaxpoints)
{
frac = pdist / (pdist - ndist);
if (frontcount < outfrontmaxpoints)
{
- *outfrontpoints++ = p[0] + frac * (n[0] - p[0]);
- *outfrontpoints++ = p[1] + frac * (n[1] - p[1]);
- *outfrontpoints++ = p[2] + frac * (n[2] - p[2]);
+ *outfrontpoints++ = (float)(p[0] + frac * (n[0] - p[0]));
+ *outfrontpoints++ = (float)(p[1] + frac * (n[1] - p[1]));
+ *outfrontpoints++ = (float)(p[2] + frac * (n[2] - p[2]));
}
frontcount++;
if (backcount < outbackmaxpoints)
{
}
frontcount++;
if (backcount < outbackmaxpoints)
{
- *outbackpoints++ = p[0] + frac * (n[0] - p[0]);
- *outbackpoints++ = p[1] + frac * (n[1] - p[1]);
- *outbackpoints++ = p[2] + frac * (n[2] - p[2]);
+ *outbackpoints++ = (float)(p[0] + frac * (n[0] - p[0]));
+ *outbackpoints++ = (float)(p[1] + frac * (n[1] - p[1]));
+ *outbackpoints++ = (float)(p[2] + frac * (n[2] - p[2]));