Fixes Script loading.

Some cleanup on array Clear
Misc errors
This commit is contained in:
hondacrx
2017-12-24 16:37:15 -05:00
parent 9937d1e421
commit c7219c7098
15 changed files with 30 additions and 13 deletions
@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
namespace Framework.Constants
{
@@ -2131,6 +2132,8 @@ namespace Framework.Constants
Finish = 0x4,
MaskAll = Cast | Hit | Finish
}
[Flags]
public enum ProcFlagsHit
{
None = 0x0, // No Value - Proc_Hit_Normal | Proc_Hit_Critical For Taken Proc Type, Proc_Hit_Normal | Proc_Hit_Critical | Proc_Hit_Absorb For Done
+3 -1
View File
@@ -13,7 +13,8 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
using System;
namespace Framework.Constants
{
@@ -206,6 +207,7 @@ namespace Framework.Constants
Deflects = 8
}
[Flags]
public enum HitInfo
{
NormalSwing = 0x0,
+4 -1
View File
@@ -364,7 +364,10 @@ namespace Framework.Database
{
MySqlErrorCode code = (MySqlErrorCode)ex.Number;
if (ex.InnerException != null)
code = (MySqlErrorCode)((MySqlException)ex.InnerException).Number;
{
if (ex.InnerException is MySqlException)
code = (MySqlErrorCode)((MySqlException)ex.InnerException).Number;
}
switch (code)
{
@@ -162,6 +162,11 @@ namespace System.Collections.Generic
array.CopyTo(blockValues, 0);
return blockValues;
}
public static void Clear(this Array array)
{
Array.Clear(array, 0, array.Length);
}
}
public interface ICheck<T>