Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
This commit is contained in:
parent
6d1a386471
commit
7e71865e91
35 changed files with 543 additions and 402 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "lure/sound.h"
|
||||
#include "common/stack.h"
|
||||
#include "common/endian.h"
|
||||
#include "common/EventRecorder.h"
|
||||
|
||||
namespace Lure {
|
||||
|
||||
|
@ -739,7 +740,7 @@ void Script::addActions(uint16 hotspotId, uint16 actions, uint16 v3) {
|
|||
|
||||
void Script::randomToGeneral(uint16 maxVal, uint16 minVal, uint16 v3) {
|
||||
Common::RandomSource rnd;
|
||||
g_system->getEventManager()->registerRandomSource(rnd, "lureScripts");
|
||||
g_eventRec.registerRandomSource(rnd, "lureScripts");
|
||||
uint16 v = minVal + rnd.getRandomNumber(maxVal - minVal);
|
||||
Resources::getReference().fieldList().setField(GENERAL, v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue