comparison mm7_2.cpp @ 854:06fc66ceecd6

for Arcomage game
author Ritor1
date Sun, 31 Mar 2013 16:42:11 +0600
parents d061180f2b42
children cb0b3badc7f7
comparison
equal deleted inserted replaced
853:7ada14f991f5 854:06fc66ceecd6
10178 v1 = (int *)pGame->pVisInstance->get_picked_object_zbuf_val(); 10178 v1 = (int *)pGame->pVisInstance->get_picked_object_zbuf_val();
10179 if ( v1 != (int *)-1 ) 10179 if ( v1 != (int *)-1 )
10180 DoInteractionWithTopmostZObject((unsigned __int16)v1, (signed int)(unsigned __int16)v1 >> 3); 10180 DoInteractionWithTopmostZObject((unsigned __int16)v1, (signed int)(unsigned __int16)v1 >> 3);
10181 } 10181 }
10182 v22 = 0; 10182 v22 = 0;
10183 v1 = (int *)((signed int)(viewparams->uScreen_BttmR_X + viewparams->uScreen_topL_X) >> 1); 10183 v1 = (int *)((signed int)(viewparams->uScreen_BttmR_X + viewparams->uScreen_topL_X) >> 1);//wrong pointer
10184 if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y ) 10184 if ( (signed int)viewparams->uScreen_topL_Y < (signed int)viewparams->uScreen_BttmR_Y )
10185 { 10185 {
10186 v2 = (char *)v1 - 50; 10186 v2 = (char *)v1 - 50;
10187 v1 = (int *)((char *)v1 + 50); 10187 v1 = (int *)((char *)v1 + 50);
10188 v3 = 640 * viewparams->uScreen_topL_Y; 10188 v3 = 640 * viewparams->uScreen_topL_Y;