Permalink
Browse files

ban execution out of arena

  • Loading branch information...
skuater
skuater committed Sep 7, 2018
1 parent 056c9fa commit 15905b2860d332ad647dac8b7f9c15ea4c5538b4
Showing with 2 additions and 2 deletions.
  1. +2 −2 clsEngine.cs
View
@@ -807,10 +807,10 @@ public bool stepInfoNew(string txtmemoria)
int x1 = dasm.IndexOf(PC[0]);
string newins = dasm.Substring(x1, dasm.IndexOf('\n', x1) - x1);
// esto es para debug y poder comprobar si los cambios de pancake funcionan pudes borrarlo en acabar
if (executedins.Contains("invalid") || executedins.Contains("unaligned"))
if (executedins.Contains("invalid") || executedins.Contains("unaligned") || pc<0 || pc>1024)
players[thisplayer].actual.dead = true;
if ((PC[1] != "" && PC[1] != "0x1") || executedins.Contains("invalid") || executedins.Contains("unaligned"))
if ((PC[1] != "" && PC[1] != "0x1") || executedins.Contains("invalid") || executedins.Contains("unaligned") || pc < 0 || pc > 1024)
players[thisplayer].actual.dead = true;
else
players[thisplayer].actual.dead = false;

0 comments on commit 15905b2

Please sign in to comment.