tree_cmd.c
changeset 541 e1cd34389f79
parent 507 8aa8100b0b22
child 679 e959706a3e4d
equal deleted inserted replaced
540:fbed599dadbb 541:e1cd34389f79
   380 static void AnimateTile_Trees(uint tile)
   380 static void AnimateTile_Trees(uint tile)
   381 {
   381 {
   382 	/* not used */
   382 	/* not used */
   383 }
   383 }
   384 
   384 
   385 static byte _desert_sounds[] = {
   385 static SoundFx _desert_sounds[] = {
   386 	66,67,68,72
   386 	SND_42_LOON_BIRD,
       
   387 	SND_43_LION,
       
   388 	SND_44_MONKEYS,
       
   389 	SND_48_DISTANT_BIRD
   387 };
   390 };
   388 
   391 
   389 static void TileLoopTreesDesert(uint tile)
   392 static void TileLoopTreesDesert(uint tile)
   390 {
   393 {
   391 	byte b;
   394 	byte b;
   438 	} else {
   441 	} else {
   439 		/* snow_p2_up */
   442 		/* snow_p2_up */
   440 		if (tmp == 0xC0) {
   443 		if (tmp == 0xC0) {
   441 			uint32 r;
   444 			uint32 r;
   442 			if (CHANCE16I(1,200,r=Random())) {
   445 			if (CHANCE16I(1,200,r=Random())) {
   443 				SndPlayTileFx( (r&0x80000000) ? 57 : 52, tile);
   446 				SndPlayTileFx((r & 0x80000000) ? SND_39_HEAVY_WIND : SND_34_WIND, tile);
   444 			}
   447 			}
   445 			return;
   448 			return;
   446 		} else {
   449 		} else {
   447 			m2 = 0xE0;
   450 			m2 = 0xE0;
   448 		}
   451 		}