Skip to content

Commit

Permalink
Fix: [Movieagency] Auctions without bid get their first bid reduced n…
Browse files Browse the repository at this point in the history
…ow. Report: Gast2
  • Loading branch information
GWRon committed Oct 24, 2017
1 parent c38b1df commit b0d5926
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source/game.roomhandler.movieagency.bmx
Expand Up @@ -1092,6 +1092,14 @@ Type TAuctionProgrammeBlocks Extends TGameObject {_exposeToLua="selected"}
Function Initialize:int()
list.Clear()
End Function


Function GetByIndex:TAuctionProgrammeBlocks(index:int)
if index < 0 then index = 0
if index >= list.Count() then return null

return TAuctionProgrammeBlocks( list.ValueAtIndex(index) )
End Function


Function GetByLicence:TAuctionProgrammeBlocks(licence:TProgrammeLicence, licenceGUID:string="")
Expand Down Expand Up @@ -1324,6 +1332,10 @@ print "maxAuctionTime reached: " + licence.Gettitle()
return true
endif
endif


'reset cache
_imageWithText = Null
End Method


Expand Down Expand Up @@ -1388,7 +1400,7 @@ print "maxAuctionTime reached: " + licence.Gettitle()
Local nextBid:Int = 0
'no bid done yet, next bid is the licences price cut by 25%
If bestBid = 0
nextBid = licence.getPriceForPlayer(0) * 0.75
nextBid = licence.getPriceForPlayer(0) * bidSavings
nextBid = TFunctions.RoundToBeautifulValue(nextBid)
Else
nextBid = bestBid
Expand Down

0 comments on commit b0d5926

Please sign in to comment.