Launcher error messageboxes, more easily controllable & better looking swimming, oxygen tank bugfixes, loading screen coroutine bugfix
This commit is contained in:
@@ -83,6 +83,7 @@ namespace Subsurface
|
||||
StatusEffect.UpdateAll((float)deltaTime);
|
||||
|
||||
Physics.accumulator = Math.Min(Physics.accumulator, Physics.step * 4);
|
||||
//Physics.accumulator = Physics.step;
|
||||
while (Physics.accumulator >= Physics.step)
|
||||
{
|
||||
cam.MoveCamera((float)Physics.step);
|
||||
@@ -119,6 +120,8 @@ namespace Subsurface
|
||||
{
|
||||
//if (!Physics.updated) return;
|
||||
|
||||
cam.UpdateTransform();
|
||||
|
||||
DrawMap(graphics, spriteBatch);
|
||||
|
||||
spriteBatch.Begin();
|
||||
@@ -282,12 +285,12 @@ namespace Subsurface
|
||||
Submarine.DrawFront(spriteBatch);
|
||||
|
||||
foreach (Character c in Character.CharacterList) c.DrawFront(spriteBatch);
|
||||
|
||||
//if (GameMain.GameSession != null && GameMain.GameSession.Level != null)
|
||||
//{
|
||||
// GameMain.GameSession.Level.Draw(spriteBatch);
|
||||
// //Game1.GameSession.Level.SetObserverPosition(cam.WorldViewCenter);
|
||||
//}
|
||||
|
||||
if (GameMain.GameSession != null && GameMain.GameSession.Level != null)
|
||||
{
|
||||
GameMain.GameSession.Level.Draw(spriteBatch);
|
||||
//Game1.GameSession.Level.SetObserverPosition(cam.WorldViewCenter);
|
||||
}
|
||||
|
||||
spriteBatch.End();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user