[Orxonox-commit 835] r3351 - trunk/src/orxonox/gamestates
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat Jul 25 22:11:13 CEST 2009
Author: rgrieder
Date: 2009-07-25 22:11:12 +0200 (Sat, 25 Jul 2009)
New Revision: 3351
Modified:
trunk/src/orxonox/gamestates/GSDedicated.cc
Log:
Build fix for windows.
Modified: trunk/src/orxonox/gamestates/GSDedicated.cc
===================================================================
--- trunk/src/orxonox/gamestates/GSDedicated.cc 2009-07-25 19:46:24 UTC (rev 3350)
+++ trunk/src/orxonox/gamestates/GSDedicated.cc 2009-07-25 20:11:12 UTC (rev 3351)
@@ -121,8 +121,12 @@
unsigned int escapeChar=0;
while(!closeThread_)
{
+#ifdef ORXONOX_PLATFORM_UNIX
size_t count = read(STDIN_FILENO, &c, 1);
if (count == 1)
+#else
+ c = getchar();
+#endif
{
// boost::recursive_mutex::scoped_lock(this->inputLineMutex_);
if ( inputIterator_>=MAX_COMMAND_LENGTH-1 && c!='\n' )
More information about the Orxonox-commit
mailing list