Mercurial > wow > mailopener
comparison Modules/OpenAll.lua @ 91:0a8e4a93316d
Extremely small irrelevant cleaning up changes I made while looking through the code.
| author | Zerotorescue |
|---|---|
| date | Sat, 18 Sep 2010 15:37:27 +0200 |
| parents | b3b9220c91e6 |
| children | 5c06ce56297a |
comparison
equal
deleted
inserted
replaced
| 90:b8902f09e382 | 91:0a8e4a93316d |
|---|---|
| 466 local slotsAvailable; | 466 local slotsAvailable; |
| 467 if self.db.profile.keepFreeSpace > 0 then | 467 if self.db.profile.keepFreeSpace > 0 then |
| 468 slotsAvailable = 0; | 468 slotsAvailable = 0; |
| 469 | 469 |
| 470 -- First find out the amount of empty bag slots | 470 -- First find out the amount of empty bag slots |
| 471 for bag = 0, 4 do | 471 for bag = 0, NUM_BAG_SLOTS do |
| 472 local numberOfFreeSlots, _ = GetContainerNumFreeSlots(bag); | 472 local numberOfFreeSlots, _ = GetContainerNumFreeSlots(bag); |
| 473 slotsAvailable = ( slotsAvailable + numberOfFreeSlots ); | 473 slotsAvailable = ( slotsAvailable + numberOfFreeSlots ); |
| 474 end | 474 end |
| 475 | 475 |
| 476 -- Then calculate how much is available after the space we need to leave empty | 476 -- Then calculate how much is available after the space we need to leave empty |
