Remove unneeded initializations

This commit is contained in:
Kurt
2015-07-08 22:14:55 -07:00
parent 28881a025a
commit f22eac1d9e

View File

@@ -394,7 +394,7 @@ internal static ushort getVariableBytes(string varType, ref List<ushort> args, b
string variable = (noArgs) ? varType : varType.Substring(0, bracket);
string[] arguments = (noArgs) ? null : varType.Substring(bracket + 1, varType.Length - bracket - 2).Split(',');
ushort varVal = 0;
ushort varVal;
switch (variable)
{
@@ -511,7 +511,7 @@ internal static void encryptVar(BinaryWriter bw, string line, ref int i, ref ush
string[] split = varCMD.Split(' ');
string varMethod = split[0]; // Returns VAR or WAIT or ~
string varType = (split.Length > 1) ? varCMD.Substring(varMethod.Length + 1) : ""; // Returns the remainder of the var command data.
ushort varValue = 0;
ushort varValue;
// Set up argument storage (even if it not used)
List<ushort> args = new List<ushort>();
@@ -579,7 +579,7 @@ internal static void decryptVar(byte[] d, ref int o, ref string s, ref ushort v,
default:
{
ushort varCode = varType; // decryptU16(d, ref o, ref v, ref k);
string tvname = "";
string tvname;
switch (varCode) // get variable's info name
{
case 0xFF00: tvname = "COLOR"; break; // Change text line color (0 = white, 1 = red, 2 = blue...)