[CF-Devel] Patch: possible bugfix in client

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Tue Nov 18 11:47:53 CST 2003


While browsing through the code, I found some suspicious looking conditions:
I think the attached patch fixes two typos in variable names.
-------------- next part --------------
Index: gnome/map.c
===================================================================
RCS file: /cvsroot/crossfire/client/gnome/map.c,v
retrieving revision 1.2
diff -u -w -r1.2 map.c
--- gnome/map.c	15 Jan 2002 07:32:59 -0000	1.2
+++ gnome/map.c	18 Nov 2003 16:55:30 -0000
@@ -321,7 +321,7 @@
 {
     
     if( pl_pos.x + dx + mapx >= the_map.x ||
-	pl_pos.y + dx + mapy >= the_map.y ||
+	pl_pos.y + dy + mapy >= the_map.y ||
 	pl_pos.x + dx <= 0                ||
 	pl_pos.y + dy <= 0 )
     {
Index: gtk/map.c
===================================================================
RCS file: /cvsroot/crossfire/client/gtk/map.c,v
retrieving revision 1.17
diff -u -w -r1.17 map.c
--- gtk/map.c	26 Oct 2003 11:43:55 -0000	1.17
+++ gtk/map.c	18 Nov 2003 16:55:32 -0000
@@ -226,7 +226,7 @@
 {
     
     if( pl_pos.x + dx + use_config[CONFIG_MAPWIDTH] +2 >= the_map.x ||
-	pl_pos.y + dx + use_config[CONFIG_MAPHEIGHT] +2 >= the_map.y ||
+	pl_pos.y + dy + use_config[CONFIG_MAPHEIGHT] +2 >= the_map.y ||
 	pl_pos.x + dx -2 <= 0                ||
 	pl_pos.y + dy -2 <= 0 )
     {
-------------- next part --------------
_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list