Skip to content

Commit

Permalink
Fix certain progress bars counting down vs counting up.
Browse files Browse the repository at this point in the history
I never hit save when i did this fix before pr-ing this. =\
  • Loading branch information
MrStonedOne committed Dec 28, 2015
1 parent 80d467f commit c3d1c92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/__HELPERS/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,11 @@ Proc for attack log creation, because really why not
progbar = new(user, time, target)

var/endtime = world.time+time
var/starttime = world.time
. = 1
while (world.time < endtime)
if (progress)
progbar.update(endtime - world.time)
progbar.update(world.time - starttime)
if(!user || !target)
. = 0
break
Expand Down

0 comments on commit c3d1c92

Please sign in to comment.