All pastes #627906 Raw Edit

Laban Unlimited

public c v1 · immutable
·published 2007-07-20 16:11 UTC
rendered paste body
/*** ROBOT.H ***/typedef struct _rob{  ...data...} ROBOT, *PROBOT;/*** MAIN.C ***/PROBOT robot[64]; // Globalguiarglist.grid  = &grid;guiarglist.robot = robot;/*** GUI.H ***/struct guiarglst{	PGRID grid;	PROBOT *robot; /* <<< */};void gui_drawgrid(struct guiarglst *guiarglist); // Prototype/*** GUI.C ***/void gui_drawgrid(struct guiarglst *guiarglist){  robotno=1;  /* <<< */  static char firstrun=1;	static int  loops=0;	static int  oldnetwork=0;	PGRID grid;	PROBOT robot[64];  if(firstrun)	{		grid  = guiarglist->grid;		robot = guiarglist->robot[robotno];   /* <<< */......