Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] [PATCH] relight_square_if_known cleanup
Home

[Freeciv-Dev] [PATCH] relight_square_if_known cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] relight_square_if_known cleanup
From: Markus Linnala <maage@xxxxxxxxx>
Date: 05 Jan 2000 23:49:00 +0200
Reply-to: Markus Linnala <maage@xxxxxxxxx>

2000-01-05  Markus Linnala  <maage@xxxxxxxxx>

        * server/maphand.h, server/maphand.c (relight_square_if_known): 
        remove unnecessary parameter

-- 
//Markus

Index: maphand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/maphand.c,v
retrieving revision 1.31
diff -u -u -r1.31 maphand.c
--- maphand.c   2000/01/01 07:23:16     1.31
+++ maphand.c   2000/01/05 21:42:39
@@ -56,7 +56,7 @@
          effect--;
          map_set_terrain(x, y, T_JUNGLE);
           reset_move_costs(x, y);
-          relight_square_if_known(0, x, y);
+          relight_square_if_known(x, y);
          break;
        case T_DESERT:
        case T_PLAINS:
@@ -66,7 +66,7 @@
          map_clear_special(x, y, S_FARMLAND);
          map_clear_special(x, y, S_IRRIGATION);
           reset_move_costs(x, y);
-          relight_square_if_known(0, x, y);
+          relight_square_if_known(x, y);
          break;
        default:
          break;
@@ -79,7 +79,7 @@
          effect--;
          map_set_terrain(x, y, T_DESERT);
           reset_move_costs(x, y);
-          relight_square_if_known(0, x, y);
+          relight_square_if_known(x, y);
          break;
        default:
          break;
@@ -176,7 +176,7 @@
 /**************************************************************************
 ...
 **************************************************************************/
-void relight_square_if_known(struct player *pplayer, int x, int y)
+void relight_square_if_known(int x, int y)
 {
   int o;
   for(o=0; o<game.nplayers; o++) {
Index: maphand.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/maphand.h,v
retrieving revision 1.8
diff -u -u -r1.8 maphand.h
--- maphand.h   1999/09/09 15:05:13     1.8
+++ maphand.h   2000/01/05 21:42:39
@@ -18,7 +18,7 @@
 struct player;
 struct section_file;
 
-void relight_square_if_known(struct player *pplayer, int x, int y);
+void relight_square_if_known(int x, int y);
 void give_map_from_player_to_player(struct player *pfrom, struct player 
*pdest);
 void give_seamap_from_player_to_player(struct player *pfrom, struct player 
*pdest);
 void send_all_known_tiles(struct player *dest);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [PATCH] relight_square_if_known cleanup, Markus Linnala <=