Changes between Initial Version and Version 1 of Ticket #1985, comment 4
- Timestamp:
- Sep 10, 2013, 10:42:05 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1985, comment 4
initial v1 5 5 Why don't you use the splice function for the removeAt. It gets you the weight to remove, and deletes the right index from the array in one go. 6 6 7 Btw, thanks for fixing that CanAttack (I didn't remember I committed that, and I didn't remember there was an CanAttack function either). 8 7 9 But overall, a very good piece of code.