fixed charges and some other minor bugs

This commit is contained in:
Manuel Simon Hirsig
2015-09-26 01:14:17 +02:00
parent c4fb4be1c6
commit 0b06156f52
2 changed files with 25 additions and 4 deletions
+3 -2
View File
@@ -87,8 +87,8 @@ function Aux_AuctionsCreateAuctionButton_OnClick()
if existingEntry.buyoutPrice == buyoutPrice and existingEntry.stackSize == stackSize then
existingEntry.count = existingEntry.count + posted
existingEntry.numYours = existingEntry.numYours + posted
existingEntry.duration = max(existingEntry.duration, duration)
newEntry = existingEntry
existingEntry.maxTimeLeft = max(existingEntry.maxTimeLeft, duration)
entry = existingEntry
end
end
if not entry then
@@ -101,6 +101,7 @@ function Aux_AuctionsCreateAuctionButton_OnClick()
numYours = posted,
}
tinsert(auxSellEntries[name], entry)
table.sort(auxSellEntries[name], function(a,b) return a.itemPrice < b.itemPrice end)
end
auxSellEntries[name].selected = entry
Aux_UpdateRecommendation()