~nha/widelands/buildcaps-ext

« back to all changes in this revision

Viewing changes to src/economy/economy.cc

  • Committer: Nicolai Hähnle
  • Date: 2013-02-12 10:02:28 UTC
  • mfrom: (6507.1.1 bug974679)
  • Revision ID: nhaehnle@gmail.com-20130212100228-ar74yl94xiz3dpv8
Trigger re-balancing after wares or workers have been added to an Economy

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
        //log("%p: add(%i, %i)\n", this, id, count);
355
355
 
356
356
        m_wares.add(id, count);
 
357
        _start_request_timer();
357
358
 
358
359
        // TODO: add to global player inventory?
359
360
}
362
363
        //log("%p: add(%i, %i)\n", this, id, count);
363
364
 
364
365
        m_workers.add(id, count);
 
366
        _start_request_timer();
365
367
 
366
368
        // TODO: add to global player inventory?
367
369
}