[Qb2c-cvs] goengine/src/game game.cpp,1.3,1.4 goengine.cpp,1.4,1.5
Brought to you by:
b_lindeijer,
syn9
|
From: <b_l...@us...> - 2004-01-20 18:19:31
|
Update of /cvsroot/qb2c/goengine/src/game
In directory sc8-pr-cvs1:/tmp/cvs-serv26403/src/game
Modified Files:
game.cpp goengine.cpp
Log Message:
Another bunch of warnings fixed.
Index: game.cpp
===================================================================
RCS file: /cvsroot/qb2c/goengine/src/game/game.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** game.cpp 20 Jan 2004 02:48:43 -0000 1.3
--- game.cpp 20 Jan 2004 18:19:27 -0000 1.4
***************
*** 131,138 ****
void drawpolys()
{
! int i, poly, p1, p2, p3, t, a, bluec = makecol(0,0,192), redc = makecol(192,0,0);
! int greyc = makecol(96, 96, 96), whitec = makecol(192,192,192), greenc = makecol(0,192,0), yellowc = makecol(224, 224, 32);
short u[3], v[3], level;
- int trans = makecol(255, 0, 255);
V3D_f v1, v2, v3;
--- 131,136 ----
void drawpolys()
{
! int i, poly, p1, p2, p3, t, a;
short u[3], v[3], level;
V3D_f v1, v2, v3;
***************
*** 182,186 ****
if (level > 0)
{
! set_trans_blender(255,255,255,255 * (float(100 - level) / 100));
triangle3d_f(offscreen, POLYTYPE_PTEX_MASK_TRANS, planeinfo[polyinfo[poly].plane].radiosity[polyinfo[poly].poly], &v1, &v2, &v3);
} else {
--- 180,184 ----
if (level > 0)
{
! set_trans_blender(255,255,255,int(255 * (float(100 - level) / 100)));
triangle3d_f(offscreen, POLYTYPE_PTEX_MASK_TRANS, planeinfo[polyinfo[poly].plane].radiosity[polyinfo[poly].poly], &v1, &v2, &v3);
} else {
***************
*** 274,280 ****
if (planeinfo[c].polyinfo[a][6] < 2)
{
! tpoly.p1 = planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][0]][6];
! tpoly.p2 = planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][1]][6];
! tpoly.p3 = planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][2]][6];
tpoly.tx = planeinfo[c].polyinfo[a][3];
tpoly.u[0] = planeinfo[c].polyvtx[a][0];
--- 272,278 ----
if (planeinfo[c].polyinfo[a][6] < 2)
{
! tpoly.p1 = int(planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][0]][6]);
! tpoly.p2 = int(planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][1]][6]);
! tpoly.p3 = int(planeinfo[c].pointinfo[planeinfo[c].polyinfo[a][2]][6]);
tpoly.tx = planeinfo[c].polyinfo[a][3];
tpoly.u[0] = planeinfo[c].polyvtx[a][0];
Index: goengine.cpp
===================================================================
RCS file: /cvsroot/qb2c/goengine/src/game/goengine.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** goengine.cpp 20 Jan 2004 02:48:43 -0000 1.4
--- goengine.cpp 20 Jan 2004 18:19:27 -0000 1.5
***************
*** 42,48 ****
setup_scene();
- int cgrey = makecol(128,128,128), whitec = makecol(192,192,192);
-
-
printf("Game data initialized, starting main loop...\n");
--- 42,45 ----
|