stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus doc/script/script.html src/include/ui...


From: address@hidden
Subject: [Stratagus-CVS] stratagus doc/script/script.html src/include/ui...
Date: 1 Feb 2004 07:06:58 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/02/01 07:06:58

Modified files:
        doc/script     : script.html 
        src/include    : ui.h 
        src/stratagus  : script.c stratagus.c 

Log message:
        minor clean-ups, fix for USERNAME.

Patches:
Index: stratagus/doc/script/script.html
diff -u stratagus/doc/script/script.html:1.1 
stratagus/doc/script/script.html:1.2
--- stratagus/doc/script/script.html:1.1        Sun Feb  1 06:01:47 2004
+++ stratagus/doc/script/script.html    Sun Feb  1 07:06:56 2004
@@ -26,18 +26,6 @@
 </head>
 <body>
        <h1>Stratagus Configuration Language Description: Content</h1>
-       <hr>
-       <pre width=80>
-         _________ __                 __                               
-        /   _____//  |_____________ _/  |______     ____  __ __  ______
-        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
-        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \ 
-       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
-               \/                  \/          \//_____/            \/ 
-    ______________________                           ______________________
-                         T H E   W A R   B E G I N S
-          Stratagus - A free fantasy real time strategy game engine
-       </pre>
        <p><b>
                (C) Copyright 1998-2004 by The Stratagus Project. Distributed 
under the
                <a href="../gpl.html">"GNU General Public License"</a>
@@ -170,11 +158,9 @@
        <b>FIXME: this is not complete, but it should give you an idea.</b>
 
        <h2>Content</h2>
-
-       not much.
-
+       <a href="stratagus.html">Stratagus.*</a>
        <hr>
-       Last changed: $Id: script.html,v 1.1 2004/01/31 19:01:47 nobody_ Exp 
$<br>
+       Last changed: $Id: script.html,v 1.2 2004/01/31 20:06:56 nobody_ Exp 
$<br>
        All trademarks and copyrights on this page are owned by their 
respective owners.
        <address>(c) 2004 by <a href="http://stratagus.org";>The Stratagus 
Project</a></address>
 </body></html>
Index: stratagus/src/include/ui.h
diff -u stratagus/src/include/ui.h:1.88 stratagus/src/include/ui.h:1.89
--- stratagus/src/include/ui.h:1.88     Sat Jan 17 00:47:07 2004
+++ stratagus/src/include/ui.h  Sun Feb  1 07:06:56 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: ui.h,v 1.88 2004/01/16 13:47:07 wizzard Exp $
+//     $Id: ui.h,v 1.89 2004/01/31 20:06:56 nobody_ Exp $
 
 #ifndef __UI_H__
 #define __UI_H__
@@ -93,11 +93,11 @@
 struct _viewport_ {
        int X;                                          /// Screen pixel left 
corner x coordinate
        int Y;                                          /// Screen pixel upper 
corner y coordinate
-       int EndX;                                               /// Screen 
pixel right x coordinate
-       int EndY;                                               /// Screen 
pixel bottom y coordinate
+       int EndX;                                       /// Screen pixel right 
x coordinate
+       int EndY;                                       /// Screen pixel bottom 
y coordinate
 
-       int MapX;                                               /// Map tile 
left corner x coordinate
-       int MapY;                                               /// Map tile 
upper corner y coordinate
+       int MapX;                                       /// Map tile left 
corner x coordinate
+       int MapY;                                       /// Map tile upper 
corner y coordinate
        int MapWidth;                           /// Width in map tiles
        int MapHeight;                          /// Height in map tiles
 
Index: stratagus/src/stratagus/script.c
diff -u stratagus/src/stratagus/script.c:1.172 
stratagus/src/stratagus/script.c:1.173
--- stratagus/src/stratagus/script.c:1.172      Thu Jan 29 08:39:27 2004
+++ stratagus/src/stratagus/script.c    Sun Feb  1 07:06:57 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp $
+//      $Id: script.c,v 1.173 2004/01/31 20:06:57 nobody_ Exp $
 
 //@{
 
@@ -1183,7 +1183,6 @@
 
        key = LuaToString(l, -1);
        DebugCheck(!key);
-       DebugLevel0Fn("(%s)\n" _C_ key);
 
        META_GET_STRING("LibraryPath", StratagusLibPath);
        META_GET_INT("GameCycle", GameCycle);
@@ -1206,7 +1205,6 @@
        DebugCheck(lua_gettop(l) != 3);
        key = LuaToString(l, -2);
        DebugCheck(!key);
-       DebugLevel0Fn("(%s)\n" _C_ key);
 
        // Here start the fields.
        // Sorry, none yet.
@@ -1406,7 +1404,7 @@
        }
 
        fprintf(fd, "--- -----------------------------------------\n");
-       fprintf(fd, "--- $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp 
$\n");
+       fprintf(fd, "--- $Id: script.c,v 1.173 2004/01/31 20:06:57 nobody_ Exp 
$\n");
 
        fprintf(fd, "SetVideoResolution(%d, %d)\n", VideoWidth, VideoHeight);
 
@@ -1430,7 +1428,7 @@
        }
 
        fprintf(fd, "--- -----------------------------------------\n");
-       fprintf(fd, "--- $Id: script.c,v 1.172 2004/01/28 21:39:27 wizzard Exp 
$\n");
+       fprintf(fd, "--- $Id: script.c,v 1.173 2004/01/31 20:06:57 nobody_ Exp 
$\n");
 
        // Global options
        if (OriginalFogOfWar) {
Index: stratagus/src/stratagus/stratagus.c
diff -u stratagus/src/stratagus/stratagus.c:1.260 
stratagus/src/stratagus/stratagus.c:1.261
--- stratagus/src/stratagus/stratagus.c:1.260   Sat Jan 31 20:51:34 2004
+++ stratagus/src/stratagus/stratagus.c Sun Feb  1 07:06:57 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: stratagus.c,v 1.260 2004/01/31 09:51:34 nobody_ Exp $
+//      $Id: stratagus.c,v 1.261 2004/01/31 20:06:57 nobody_ Exp $
 
 //@{
 
@@ -977,7 +977,7 @@
        strcpy(LocalPlayerName, "Anonymous");
 #else
        if (getenv("USER")) {
-               strncpy(LocalPlayerName, getenv("USERNAME"), 14);
+               strncpy(LocalPlayerName, getenv("USER"), 
sizeof(LocalPlayerName) - 1);
        } else {
                strcpy(LocalPlayerName, "Anonymous");
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]