[Scummvm-cvs-logs] SF.net SVN: scummvm: [29385] scummvm/trunk/engines/cruise/mainDraw.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sat Nov 3 14:46:45 CET 2007
Revision: 29385
http://scummvm.svn.sourceforge.net/scummvm/?rev=29385&view=rev
Author: drmccoy
Date: 2007-11-03 06:46:45 -0700 (Sat, 03 Nov 2007)
Log Message:
-----------
Unleashing the polygon virus! (I.e. fixing a compiler warning and a, what I think is a, logical error. Also changing swaps to use the template SWAP.)
Modified Paths:
--------------
scummvm/trunk/engines/cruise/mainDraw.cpp
Modified: scummvm/trunk/engines/cruise/mainDraw.cpp
===================================================================
--- scummvm/trunk/engines/cruise/mainDraw.cpp 2007-11-03 13:23:36 UTC (rev 29384)
+++ scummvm/trunk/engines/cruise/mainDraw.cpp 2007-11-03 13:46:45 UTC (rev 29385)
@@ -397,11 +397,7 @@
if(Y2 >= Y1)
{
- int16* temp;
-
- temp=BX;
- BX = DI;
- DI = temp;
+ SWAP(BX, DI);
}
do
@@ -425,20 +421,11 @@
cx = -cx;
dx = Y2;
- int temp;
- temp = X1;
- X1 = X2;
- X2 = temp;
-
- temp = Y1;
- Y1 = Y2;
- Y2 = temp;
+ SWAP(X1, X2);
+ SWAP(Y1, Y2);
}
// swap again ?
- int temp;
- temp = X1;
- X1 = X2;
- X2 = temp;
+ SWAP(X1, X2);
int patchAdd = 2;
@@ -480,10 +467,7 @@
{
stepType = 1; // DX < DY
- int temp;
- temp = dy;
- dy = cx;
- cx = dy;
+ SWAP(dy, cx);
}
int patchinc1 = 2*dy;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list