joseffaghihi / GamificationAlgebraConcepts

Gamification of Algebra Concepts
0 stars 1 forks source link

[MMM:Ship]Bug: Variables are not vigorously checked #10

Closed SibTiger closed 9 years ago

SibTiger commented 9 years ago

Some variables within the game are not vigorously checked for its integrity. As it currently stands, it is possible to have signed values for some integer values when it should remained unsigned. Though, do note, it is possible to enforce the signed and unsigned flags in C#, though Unity's inspector does not support these flags.

I only tested the flags in the previous Unity build, 4.6.x and not Unity 5.x. This should be retested for an easy fix, instead of attempting to include a value range field.

SibTiger commented 9 years ago

Unity 5.x supports the unsigned for int's flag on the inspector. Though, for any other type, the mutable variable must be checked. For example, floats must be range checked.

SibTiger commented 9 years ago

Fixed.

It wasn't as bad as I thought it would be.