Progress on tutorial, misc bugfixes

This commit is contained in:
Regalis
2015-08-20 00:42:24 +03:00
parent e19ac600ff
commit 8c559f716f
19 changed files with 356 additions and 85 deletions
+5
View File
@@ -45,6 +45,11 @@ namespace Subsurface
get { return Vector2.Zero; }
}
public AITarget AiTarget
{
get { return aiTarget; }
}
public Entity()
{
//give an unique ID
+5 -2
View File
@@ -505,7 +505,7 @@ namespace Subsurface
private void Translate(Vector2 amount)
{
if (amount == Vector2.Zero || ! amount.IsValid()) return;
if (amount == Vector2.Zero || !amount.IsValid()) return;
Level.Loaded.Move(-amount);
}
@@ -587,8 +587,11 @@ namespace Subsurface
newSpeed = new Vector2(message.ReadFloat(), message.ReadFloat());
}
catch
catch (Exception e)
{
#if DEBUG
DebugConsole.ThrowError("invalid network message", e);
#endif
return;
}