I've just began learning C-script and i'm working on a script that simply makes the camera follow the mouse..I've gotten that far but when i try to mouse_map a BMP image it shows the cursor in the top left of the screen instead of as the cursor.

This is my code.

Oh and btw, I've also have gotten a "possible endless loop" error when running my script, when I have a wait var. in the function main, so I don't understand why I'm getting that..


Thanks.

Code:
var video_mode = 7;
var video_depth = 16;

///////////////////////

STRING ws13_wmb = <ws13.wmb>;
////////////////////////////

BMAP crosshair_pcx = "crosshair.pcx";


function mouse_mapping()
{
if (mouse_mode == 1)
{
mouse_map = crosshair_pcx;
}
}


function main()
{
level_load (ws13_wmb); //Load level
mouse_mode = 1;
while (1)
{
mouse_pos.x = mouse_pointer.x;
mouse_pos.y = mouse_pointer.y;
camera.pan -= mouse_force.x;
camera.tilt += mouse_force.y;
mouse_mapping()
}
wait (1);
}