Hi!

I'm having a problem with a pick and drop function that was working
very well in VER 6.60 Pro

I now have VER 7.04 Pro with WindowsXP-home.
I have transferred all my ".wdl" scripts to Lite-C ".c".
Two of my levels work...So the migration is coming along fine.
Level 3 opens and works until I try to pick up the object.
Then I get the following message.

Error E1513: Crash in bougequest1j2
Program aborted


The code follows below:
Code:
 ENTITY* quest1j2;
ENTITY* tempj2;

/////////////
var enable_polycollision = 0; //is set in main.c before function main()
////////////
int valeurclic = 0;

function bougequest1j2 () // August 1st 2007
{
wait(1);
valeurclic += 1;
if ( (valeurclic % 2) == 1) // The left side of mouse was selected
{
while (mouse_left == 1) {wait (1);}
while (mouse_left == 0)
// move the object until the player presses the mouse button again
{
tempj2.x = mouse_cursor.x;
tempj2.y = mouse_cursor.y;
tempj2.z = 500; // move the object 500 quants below the camera,
vec_for_screen(tempj2, camera);
quest1j2.x = tempj2.x;
quest1j2.y = tempj2.y;
quest1j2.z = tempj2.z;
wait (1);
}
}
else // drop the object
{
vec_set (tempj2.x, quest1j2.x);
quest1j2.z += 50; // drop the object 50 quants
c_move(quest1j2,nullvector,nullvector,
IGNORE_MAPS | IGNORE_CONTENT | ACTIVATE_TRIGGER | USE_AABB );
}
}




Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C