- moved the script compiler's backend to 'common'.
This commit is contained in:
parent
3454314bb1
commit
a28182fe35
16 changed files with 44 additions and 39 deletions
|
|
@ -1047,7 +1047,29 @@ bool G_Responder (event_t *ev)
|
|||
ev->type == EV_Mouse);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FRandom :: StaticSumSeeds
|
||||
//
|
||||
// This function produces a uint32_t that can be used to check the consistancy
|
||||
// of network games between different machines. Only a select few RNGs are
|
||||
// used for the sum, because not all RNGs are important to network sync.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
extern FRandom pr_spawnmobj;
|
||||
extern FRandom pr_acs;
|
||||
extern FRandom pr_chase;
|
||||
extern FRandom pr_damagemobj;
|
||||
|
||||
static uint32_t StaticSumSeeds()
|
||||
{
|
||||
return
|
||||
pr_spawnmobj.Seed() +
|
||||
pr_acs.Seed() +
|
||||
pr_chase.Seed() +
|
||||
pr_damagemobj.Seed();
|
||||
}
|
||||
|
||||
//
|
||||
// G_Ticker
|
||||
|
|
@ -1166,7 +1188,7 @@ void G_Ticker ()
|
|||
|
||||
// [RH] Include some random seeds and player stuff in the consistancy
|
||||
// check, not just the player's x position like BOOM.
|
||||
uint32_t rngsum = FRandom::StaticSumSeeds ();
|
||||
uint32_t rngsum = StaticSumSeeds ();
|
||||
|
||||
//Added by MC: For some of that bot stuff. The main bot function.
|
||||
primaryLevel->BotInfo.Main (primaryLevel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue