fixes qr7 import
This commit is contained in:
Kurt 2017-02-06 21:36:00 -08:00
parent ca17dd4c76
commit 2b606dfc32
2 changed files with 9 additions and 9 deletions

View File

@ -108,7 +108,7 @@ internal static byte[] getQRData()
pkstr = pkstr.Substring(0, pkstr.IndexOf(cap, StringComparison.Ordinal)); // Trim outro
try
{
if (!pkstr.StartsWith("http") && pkstr.StartsWith(BadQRUrl)) // G7
if (!pkstr.StartsWith("http") && !pkstr.StartsWith(BadQRUrl)) // G7
{
string fstr = Regex.Unescape(pkstr);
byte[] raw = Encoding.Unicode.GetBytes(fstr);

View File

@ -371,21 +371,21 @@ private static int getMaxSpeciesOrigin(int generation)
switch (generation)
{
case 1:
return Legal.MaxSpeciesID_1;
return MaxSpeciesID_1;
case 2:
return Legal.MaxSpeciesID_2;
return MaxSpeciesID_2;
case 3:
return Legal.MaxSpeciesID_3;
return MaxSpeciesID_3;
case 4:
return Legal.MaxSpeciesID_4;
return MaxSpeciesID_4;
case 5:
return Legal.MaxSpeciesID_5;
return MaxSpeciesID_5;
case 6:
return Legal.MaxSpeciesID_6;
return MaxSpeciesID_6;
case 7:
return Legal.MaxSpeciesID_7;
return MaxSpeciesID_7;
default:
return Legal.MaxSpeciesID_7;
return MaxSpeciesID_7;
}
}