wm: glendy

Download patch

ref: 90b793688063140da78c021eff27565422545236
parent: 79d63451ba564d3d51f6bddf81d031b941c4beda
author: mkf <mkf@cloud9p.org>
date: Tue May 21 19:10:00 EDT 2024

Servers: cut the teeth.

servers used to send data in form of [x][y], this made problems for all of us.
m(

--- a/srv.c
+++ b/srv.c
@@ -169,7 +169,7 @@
 		{
 			for(int y = 0; y < SzY; y++)
 			{
-				switch(grid[x][y])
+				switch(grid[y][x])
 				{
 					case Wall: 
 						printclients("w %d %d\n", x, y);
--- a/srv4.c
+++ b/srv4.c
@@ -144,7 +144,7 @@
 		{
 			for(int y = 0; y < SzY; y++)
 			{
-				switch(grid[x][y])
+				switch(grid[y][x])
 				{
 					case Wall: 
 						printclients("w %d %d\n", x, y);