3runs way looks best for my taste ( did not test cause iam working edit: and dont have the inventory.c ^^ editend ).
@Ruben
Looking into manual from time to time would help U a lot.
Code:
BMAP* arrow = "arrow.pcx";

function mouse_toggle() // switches the mouse on and off
{  
  mouse_map = arrow; // use arrow as mouse pointer
  if (mouse_mode >= 2) { // was it already on?
    mouse_mode = 0;
  } else {
    mouse_mode = 2; 
  } 
  while (mouse_mode > 0) // move it over the screen
  {  
    vec_set(mouse_pos,mouse_cursor);
    wait(1);
  }
}


Last edited by rayp; 09/19/13 10:04.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;