gui->setViewCoords(x,y,z);//Set the new screen position!
if(c_x!=3000 &&!world->ReadPauseState())gui->setCursorCoords(c_x-(prevX-x),c_y-(prevY-y),z);//If, for some reason, the cursor is active and the screen is still moving, move the cursor along with the screen
if(c_x!=-30000 &&!world->ReadPauseState())gui->setCursorCoords(c_x-(prevX-x),c_y-(prevY-y),z);//If, for some reason, the cursor is active and the screen is still moving, move the cursor along with the screen
prevX=x;//Save this round's stuff for next time so we can monitor for changes made by the user