minor clean-ups, fix for USERNAME.
This commit is contained in:
parent
e42d51addc
commit
11f3d9a90f
4 changed files with 6 additions and 22 deletions
|
@ -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,9 +158,7 @@
|
|||
<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$<br>
|
||||
All trademarks and copyrights on this page are owned by their respective owners.
|
||||
|
|
|
@ -93,11 +93,11 @@ typedef struct _viewport_ Viewport; /// Viewport typedef
|
|||
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
|
||||
|
||||
|
|
|
@ -1183,7 +1183,6 @@ local int ScriptStratagusGetValue(lua_State* l)
|
|||
|
||||
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 @@ local int ScriptStratagusSetValue(lua_State* l)
|
|||
DebugCheck(lua_gettop(l) != 3);
|
||||
key = LuaToString(l, -2);
|
||||
DebugCheck(!key);
|
||||
DebugLevel0Fn("(%s)\n" _C_ key);
|
||||
|
||||
// Here start the fields.
|
||||
// Sorry, none yet.
|
||||
|
|
|
@ -977,7 +977,7 @@ global int main(int argc, char** argv)
|
|||
strcpy(LocalPlayerName, "Anonymous");
|
||||
#else
|
||||
if (getenv("USER")) {
|
||||
strncpy(LocalPlayerName, getenv("USERNAME"), 14);
|
||||
strncpy(LocalPlayerName, getenv("USER"), sizeof(LocalPlayerName) - 1);
|
||||
} else {
|
||||
strcpy(LocalPlayerName, "Anonymous");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue