Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1379 → Rev 1380

/demos/trunk/jumpball/ball.c
18,11 → 18,11
 
/**
------------
CVS : $Id: ball.c,v 1.4 2004-04-17 17:16:46 giacomo Exp $
CVS : $Id: ball.c,v 1.5 2004-04-18 09:45:27 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2004-04-17 17:16:46 $
Revision: $Revision: 1.5 $
Last update: $Date: 2004-04-18 09:45:27 $
------------
**/
 
125,21 → 125,20
x = x0 + vx * tx;
}
 
task_nopreempt();
grx_disc(ox, oy, R, 0);
task_preempt();
mutex_lock(&mutex);
grx_disc(ox, oy, R, 0);
ox = x;
oy = BALL_Y - y;
mutex_unlock(&mutex);
 
ox = x;
oy = BALL_Y - y;
 
if (ballexit && i!=0xFFFF) {
npc--;
return 0;
}
 
task_nopreempt();
grx_disc(ox, oy, R, i);
task_preempt();
mutex_lock(&mutex);
grx_disc(ox, oy, R, i);
mutex_unlock(&mutex);
 
my_delay();