|
|
|
@ -1,8 +1,14 @@
|
|
|
|
|
/* $Id: field.c,v 1.41 2003/07/27 20:53:21 stpohle Exp $ */
|
|
|
|
|
/* $Id: field.c,v 1.42 2003/07/27 21:09:57 stpohle Exp $ */
|
|
|
|
|
/* field.c - procedures which are needed to control the field */
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
|
|
|
|
|
|
#define FIELDECHECK_TIMEOUT 500 /* timeout for the field check function */
|
|
|
|
|
#define FIELDHURRYWARN 500 /* hurry warning */
|
|
|
|
|
#define FIELDHURRYDROPTO 50 /* timeout when to put in some special items */
|
|
|
|
|
#define FIELDHURRYSIZE 25 /* timeout when to put in some special items */
|
|
|
|
|
#define FIELDHURRYSIZEMIN 5 /* min size for the field */
|
|
|
|
|
|
|
|
|
|
static _point fieldani[MAX_FIELDANIMATION];
|
|
|
|
|
static _point stonelist[MAX_STONESTODRAW]; // keep all stones to draw
|
|
|
|
|
|
|
|
|
@ -316,7 +322,7 @@ void
|
|
|
|
|
field_loop ()
|
|
|
|
|
{
|
|
|
|
|
/* single game or multiplayer master, so check field state */
|
|
|
|
|
if (GT_MP_PTPM || bman.gametype == GT_single) {
|
|
|
|
|
if ((GT_MP_PTPM || bman.gametype == GT_single) && bman.state == GS_running) {
|
|
|
|
|
|
|
|
|
|
/* timeout for rechecking every 5 secs the field */
|
|
|
|
|
if (map.state == MS_normal && map.map_selection == MAPS_randgen
|
|
|
|
|