mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 16:17:13 +00:00
Fixed a bug in the troops training
Troops can now be trained in 0 seconds.
This commit is contained in:
@@ -38,7 +38,7 @@ $dur=round(${'u'.$i}['time'] * ($bid29[$village->resarray['f'.$id]]['attri'] / 1
|
||||
}
|
||||
}
|
||||
$dur=$generator->getTimeFormat($dur);
|
||||
echo ($dur=="0:00:00")? "0:00:01":$dur;
|
||||
echo $dur;
|
||||
|
||||
//-- If available resources combined are not enough, remove NPC button
|
||||
$total_required = (int)(${'u'.$i}['wood'] + ${'u'.$i}['clay'] + ${'u'.$i}['iron'] + ${'u'.$i}['crop']);
|
||||
|
||||
Reference in New Issue
Block a user