[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57647] trunk/blender/source/gameengine/ GamePlayer/ghost/GPG_Application.cpp: Minor code cleanup in 'source/ gameengine/GamePlayer/ghost/GPG_Application.cpp'.
Inês Almeida
britalmeida at gmail.com
Sat Jun 22 11:04:33 CEST 2013
Revision: 57647
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57647
Author: brita_
Date: 2013-06-22 09:04:33 +0000 (Sat, 22 Jun 2013)
Log Message:
-----------
Minor code cleanup in 'source/gameengine/GamePlayer/ghost/GPG_Application.cpp'.
Removed a function call with no effect and merged two other lines for legibility.
This commit was reviewed by Moguri.
Modified Paths:
--------------
trunk/blender/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
Modified: trunk/blender/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
===================================================================
--- trunk/blender/source/gameengine/GamePlayer/ghost/GPG_Application.cpp 2013-06-22 08:04:02 UTC (rev 57646)
+++ trunk/blender/source/gameengine/GamePlayer/ghost/GPG_Application.cpp 2013-06-22 09:04:33 UTC (rev 57647)
@@ -554,12 +554,11 @@
GameData *gm= &m_startScene->gm;
bool properties = (SYS_GetCommandLineInt(syshandle, "show_properties", 0) != 0);
bool profile = (SYS_GetCommandLineInt(syshandle, "show_profile", 0) != 0);
- bool fixedFr = (gm->flag & GAME_ENABLE_ALL_FRAMES);
bool showPhysics = (gm->flag & GAME_SHOW_PHYSICS);
SYS_WriteCommandLineInt(syshandle, "show_physics", showPhysics);
- bool fixed_framerate= (SYS_GetCommandLineInt(syshandle, "fixedtime", fixedFr) != 0);
+ bool fixed_framerate= (SYS_GetCommandLineInt(syshandle, "fixedtime", (gm->flag & GAME_ENABLE_ALL_FRAMES)) != 0);
bool frameRate = (SYS_GetCommandLineInt(syshandle, "show_framerate", 0) != 0);
bool useLists = (SYS_GetCommandLineInt(syshandle, "displaylists", gm->flag & GAME_DISPLAY_LISTS) != 0);
bool nodepwarnings = (SYS_GetCommandLineInt(syshandle, "ignore_deprecation_warnings", 1) != 0);
@@ -632,8 +631,6 @@
m_ketsjiengine->SetRenderTools(m_rendertools);
m_ketsjiengine->SetRasterizer(m_rasterizer);
- m_ketsjiengine->SetTimingDisplay(frameRate, false, false);
-
KX_KetsjiEngine::SetExitKey(ConvertKeyCode(gm->exitkey));
#ifdef WITH_PYTHON
CValue::SetDeprecationWarnings(nodepwarnings);
More information about the Bf-blender-cvs
mailing list