Changes between Initial Version and Version 1 of Ticket #1985, comment 4


Ignore:
Timestamp:
Sep 10, 2013, 10:42:05 PM (11 years ago)
Author:
sanderd17

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1985, comment 4

    initial v1  
    55Why 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.
    66
     7Btw, thanks for fixing that CanAttack (I didn't remember I committed that, and I didn't remember there was an CanAttack function either).
     8
    79But overall, a very good piece of code.