tunnelbridge_cmd.c
changeset 856 918759cedca8
parent 679 04ca2cd69420
child 900 27eb21ced433
equal deleted inserted replaced
855:77d7ff319a94 856:918759cedca8
   429 	int direction;
   429 	int direction;
   430 	int32 cost, ret;
   430 	int32 cost, ret;
   431 	TileInfo ti;
   431 	TileInfo ti;
   432 	uint z;
   432 	uint z;
   433 
   433 
   434 	if ( (uint) x > TILE_X_MAX * 16 - 1 ||  (uint) y > TILE_X_MAX * 16 - 1)
   434 	if ((uint)x > MapMaxX() * 16 - 1 || (uint)y > MapMaxY() * 16 - 1)
   435 		return CMD_ERROR;
   435 		return CMD_ERROR;
   436 
   436 
   437 	/* check if valid, and make sure that (x,y) is smaller than (x2,y2) */
   437 	/* check if valid, and make sure that (x,y) is smaller than (x2,y2) */
   438 	direction = 0;
   438 	direction = 0;
   439 	if (x == x2) {
   439 	if (x == x2) {