wm: glendy

Download patch

ref: 917cac8aba2b5e8d6ef5e5c182445d3700ede55d
parent: 90b793688063140da78c021eff27565422545236
author: mkf <mkf@cloud9p.org>
date: Tue May 21 19:11:12 EDT 2024

netclient: deal with teeth cut

--- a/netclient.c
+++ b/netclient.c
@@ -143,7 +143,7 @@
 					p.x = atoi(xpos);
 					p.y = atoi(ypos);
 					
-					grid[p.x][p.y] = Wall;
+					grid[p.y][p.x] = Wall;
 					break;
 				case 'g':
 					xpos = strtok(nil, " ");
@@ -154,7 +154,7 @@
 					p.x = atoi(xpos);
 					p.y = atoi(ypos);
 					
-					grid[p.x][p.y] = Glenda;
+					grid[p.y][p.x] = Glenda;
 					break;
 				default:
 					if(!strcmp("SENT", tmp))