1
0
forked from 0ad/0ad

Remove duplication from cmpAutoBuildable init.

Differential revision: D3296
Reviewed by: @wraitii
Comment by: @Stan
This was SVN commit r24529.
This commit is contained in:
Freagarach 2021-01-10 07:25:52 +00:00
parent 312dbbea9e
commit f876db857a

View File

@ -2,9 +2,7 @@ class AutoBuildable
{
Init()
{
this.rate = ApplyValueModificationsToEntity("AutoBuildable/Rate", +this.template.Rate, this.entity);
if (this.rate)
this.StartTimer();
this.UpdateRate();
}
/**
@ -18,7 +16,6 @@ class AutoBuildable
UpdateRate()
{
this.rate = ApplyValueModificationsToEntity("AutoBuildable/Rate", +this.template.Rate, this.entity);
if (this.rate)
this.StartTimer();
}