Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1159 → Rev 1160

/demos/trunk/jumpball/ball.c
18,11 → 18,11
 
/**
------------
CVS : $Id: ball.c,v 1.2 2003-05-01 19:43:16 pj Exp $
CVS : $Id: ball.c,v 1.3 2003-05-05 09:21:55 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-05-01 19:43:16 $
Revision: $Revision: 1.3 $
Last update: $Date: 2003-05-05 09:21:55 $
------------
**/
 
60,6 → 60,16
static int npc = 0; /* number of tasks created */
 
/*--------------------------------------------------------------*/
/* Delay function for jumping balls */
/*--------------------------------------------------------------*/
 
void my_delay(void)
{
int xxx;
for (xxx=0; xxx<BALL_DELAY; xxx++);
}
 
/*--------------------------------------------------------------*/
/* Periodic task for ball simulation */
/*--------------------------------------------------------------*/
 
130,10 → 140,8
grx_disc(ox, oy, R, i);
mutex_unlock(&mutex);
 
{
int xxx;
for (xxx=0; xxx<10000; xxx++);
}
my_delay();
 
ty += dt;
tx += dt;
task_endcycle();