[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/map ccl_map.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/map ccl_map.c |
Date: |
14 Dec 2003 15:48:37 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 03/12/14 15:48:37
Modified files:
src/map : ccl_map.c
Log message:
Allow CclSetFogOfWar during the game
Patches:
Index: stratagus/src/map/ccl_map.c
diff -u stratagus/src/map/ccl_map.c:1.46 stratagus/src/map/ccl_map.c:1.47
--- stratagus/src/map/ccl_map.c:1.46 Sun Dec 14 15:29:52 2003
+++ stratagus/src/map/ccl_map.c Sun Dec 14 15:48:36 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: ccl_map.c,v 1.46 2003/12/14 04:29:52 jsalmon3 Exp $
+// $Id: ccl_map.c,v 1.47 2003/12/14 04:48:36 jsalmon3 Exp $
//@{
@@ -410,6 +410,9 @@
old = !TheMap.NoFogOfWar;
TheMap.NoFogOfWar = !gh_scm2bool(flag);
+ if (!CclInConfigFile) {
+ UpdateFogOfWarChange();
+ }
return gh_bool2scm(old);
}
@@ -424,6 +427,9 @@
}
old = !TheMap.NoFogOfWar;
TheMap.NoFogOfWar = !LuaToBoolean(l, 1);
+ if (!CclInConfigFile) {
+ UpdateFogOfWarChange();
+ }
lua_pushboolean(l, old);
return 1;