2004-03-03 Version 0.6 is released. Brief changelog: * New character: Aisha * One new arena * Improved network mode (fair game for both players) * Portugese translation * Joystick / gamepad support * Improved blocking and slightly :) better game balance. * Projectiles for all! :) 2004-01-31. Version 0.5 is released. Brief changelog: * Translations (4 languages) * Shadows * Network mode and MortalNet * Parallax scrolled background (in 3 arenas so far) * New fonts * One more arena * Friendlier player key selection
29 lines
924 B
Text
29 lines
924 B
Text
$NetBSD: patch-aa,v 1.2 2004/03/06 17:32:11 xtraeme Exp $
|
|
|
|
--- src/State.cpp.orig 2004-03-06 18:20:58.000000000 +0100
|
|
+++ src/State.cpp 2004-03-06 18:22:07.000000000 +0100
|
|
@@ -151,10 +151,10 @@
|
|
debug( "GetUserName failed: %d.\n", iResult );
|
|
}
|
|
#else
|
|
- int iResult = getlogin_r( m_acNick, 127 );
|
|
+ int iResult = (int)getlogin();
|
|
if ( iResult )
|
|
{
|
|
- debug( "getlogin_r failed: %d\n", iResult );
|
|
+ debug( "getlogin failed: %d\n", iResult );
|
|
strcpy( m_acNick, getenv("USER") );
|
|
}
|
|
#endif
|
|
@@ -273,7 +273,11 @@
|
|
void SState::Save()
|
|
{
|
|
std::string sFilename = GetConfigFilename();
|
|
+#if defined(__GNUC__) && (__GNUC__ <= 2)
|
|
+ std::ofstream oStream( sFilename.c_str(), ios::out | ios::trunc );
|
|
+#else
|
|
std::ofstream oStream( sFilename.c_str(), std::ios_base::out | std::ios_base::trunc );
|
|
+#endif
|
|
if ( oStream.rdstate() & std::ios::failbit )
|
|
{
|
|
debug( "Unable to open config file: %s\n", sFilename.c_str() );
|