| 
									
										
										
										
											2023-08-03 21:12:23 +02:00
										 |  |  | #ifndef _LCR_DEBUG_H
 | 
					
						
							|  |  |  | #define _LCR_DEBUG_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "map.h"
 | 
					
						
							|  |  |  | #include <stdio.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void LCR_debugPrintCurrentMap() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   puts("current map:"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   for (int i = 0; i < LCR_currentMap.blockCount; ++i) | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     uint8_t x, y, z; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     LCR_mapBlockGetCoords(LCR_currentMap.blocks + i * 4,&x,&y,&z); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-23 20:21:08 +02:00
										 |  |  |     printf("  block %d: type %x, coord %d (%d %d %d)\n",i, | 
					
						
							| 
									
										
										
										
											2023-08-03 21:12:23 +02:00
										 |  |  |       LCR_currentMap.blocks[i * 4],LCR_mapBlockGetCoordNumber( | 
					
						
							|  |  |  |       LCR_currentMap.blocks + i * 4),x,y,z); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |