forked from mirror/openmw-tes3mp
Fixed bug with -ns not working
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@133 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
730db43885
commit
af6503977a
2 changed files with 16 additions and 11 deletions
|
@ -45,6 +45,8 @@ import gui.gui;
|
|||
import input.keys;
|
||||
import input.ois;
|
||||
|
||||
import openmw;
|
||||
|
||||
// Debug output
|
||||
//debug=printMouse; // Mouse button events
|
||||
//debug=printMouseMove; // Mouse movement events
|
||||
|
@ -343,19 +345,21 @@ extern(C) int d_frameStarted(float time)
|
|||
playerData.position.position[1] = y;
|
||||
playerData.position.position[2] = z;
|
||||
|
||||
// Tell the sound scene that the player has moved
|
||||
sndCumTime += time;
|
||||
if(sndCumTime > sndRefresh)
|
||||
if(!noSound)
|
||||
{
|
||||
float fx, fy, fz;
|
||||
float ux, uy, uz;
|
||||
// Tell the sound scene that the player has moved
|
||||
sndCumTime += time;
|
||||
if(sndCumTime > sndRefresh)
|
||||
{
|
||||
float fx, fy, fz;
|
||||
float ux, uy, uz;
|
||||
|
||||
ogre_getCameraOrientation(&fx, &fy, &fz, &ux, &uy, &uz);
|
||||
ogre_getCameraOrientation(&fx, &fy, &fz, &ux, &uy, &uz);
|
||||
|
||||
soundScene.update(x,y,z,fx,fy,fz,ux,uy,uz);
|
||||
sndCumTime -= sndRefresh;
|
||||
soundScene.update(x,y,z,fx,fy,fz,ux,uy,uz);
|
||||
sndCumTime -= sndRefresh;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
5
openmw.d
5
openmw.d
|
@ -21,7 +21,7 @@
|
|||
|
||||
*/
|
||||
|
||||
module morro;
|
||||
module openmw;
|
||||
|
||||
import std.stdio;
|
||||
import std.string;
|
||||
|
@ -81,13 +81,14 @@ void poolSize()
|
|||
}
|
||||
//*/
|
||||
|
||||
bool noSound = false;
|
||||
|
||||
void main(char[][] args)
|
||||
{
|
||||
bool render = true;
|
||||
bool help = false;
|
||||
bool resetKeys = false;
|
||||
bool showOgreFlag = false;
|
||||
bool noSound = false;
|
||||
bool debugOut = false;
|
||||
bool extTest = false;
|
||||
bool doGen = false;
|
||||
|
|
Loading…
Reference in a new issue