[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/stratagus script.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/stratagus script.c |
Date: |
28 Jan 2004 04:32:46 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/28 04:32:45
Modified files:
src/stratagus : script.c
Log message:
Fixed spacing
Patches:
Index: stratagus/src/stratagus/script.c
diff -u stratagus/src/stratagus/script.c:1.170
stratagus/src/stratagus/script.c:1.171
--- stratagus/src/stratagus/script.c:1.170 Tue Jan 27 21:15:24 2004
+++ stratagus/src/stratagus/script.c Wed Jan 28 04:32:44 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: script.c,v 1.170 2004/01/27 10:15:24 wizzard Exp $
+// $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp $
//@{
@@ -75,19 +75,16 @@
-- Variables
----------------------------------------------------------------------------*/
-/// Uncomment this to enable additionnal check on GC operations
-// #define DEBUG_GC
-
global lua_State* Lua;
global char* CclStartFile; /// CCL start file
global char* GameName; /// Game Preferences
global int CclInConfigFile; /// True while config file parsing
-global int SaveGameLoading; /// If a Saved
Game is Loading
+global int SaveGameLoading; /// If a Saved Game is Loading
global char* Tips[MAX_TIPS + 1]; /// Array of tips
-global int ShowTips; /// Show tips at start of level
-global int CurrentTip; /// Current tip to display
+global int ShowTips; /// Show tips at start of level
+global int CurrentTip; /// Current tip to display
/*----------------------------------------------------------------------------
-- Functions
@@ -245,10 +242,10 @@
const char* value;
char buf[1024];
- if (lua_gettop(l) != 1 || !lua_istable(l, 1)) {
+ if (lua_gettop(l) != 1 || !lua_istable(l, 1)) {
lua_pushstring(l, "incorrect argument");
lua_error(l);
- }
+ }
lua_pushnil(l);
while (lua_next(l, 1)) {
@@ -306,7 +303,7 @@
/**
** Perform CCL garbage collection
**
-** @param fast set this flag to disable slow GC ( during game )
+** @param fast set this flag to disable slow GC (during game)
*/
global void CclGarbageCollect(int fast)
{
@@ -1410,7 +1407,7 @@
}
fprintf(fd, "--- -----------------------------------------\n");
- fprintf(fd, "--- $Id: script.c,v 1.170 2004/01/27 10:15:24 wizzard Exp
$\n");
+ fprintf(fd, "--- $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp
$\n");
fprintf(fd, "SetVideoResolution(%d, %d)\n", VideoWidth, VideoHeight);
@@ -1434,7 +1431,7 @@
}
fprintf(fd, "--- -----------------------------------------\n");
- fprintf(fd, "--- $Id: script.c,v 1.170 2004/01/27 10:15:24 wizzard Exp
$\n");
+ fprintf(fd, "--- $Id: script.c,v 1.171 2004/01/27 17:32:44 jsalmon3 Exp
$\n");
// Global options
if (OriginalFogOfWar) {