Reworked FRandom constructors
Removes ambiguity while keeping old constructor syntax in check for better overall portability.
This commit is contained in:
parent
a1a4a97dcd
commit
3ea5be1ea7
42 changed files with 130 additions and 119 deletions
|
|
@ -54,7 +54,7 @@
|
|||
#include "p_checkposition.h"
|
||||
#include "actorinlines.h"
|
||||
|
||||
static FRandom pr_botdofire ("BotDoFire", false);
|
||||
static FRandom pr_botdofire ("BotDoFire");
|
||||
|
||||
|
||||
//Checks TRUE reachability from bot to a looker.
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ Everything that is changed is marked (maybe commented) with "Added by MC"
|
|||
#include "i_system.h" // for SHARE_DIR
|
||||
#endif // !_WIN32 && !__APPLE__
|
||||
|
||||
static FRandom pr_botspawn ("BotSpawn", false);
|
||||
static FRandom pr_botspawn ("BotSpawn");
|
||||
|
||||
cycle_t BotThinkCycles, BotSupportCycles;
|
||||
int BotWTG;
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@
|
|||
#include "p_checkposition.h"
|
||||
#include "actorinlines.h"
|
||||
|
||||
static FRandom pr_botopendoor ("BotOpenDoor", false);
|
||||
static FRandom pr_bottrywalk ("BotTryWalk", false);
|
||||
static FRandom pr_botnewchasedir ("BotNewChaseDir", false);
|
||||
static FRandom pr_botopendoor ("BotOpenDoor");
|
||||
static FRandom pr_bottrywalk ("BotTryWalk");
|
||||
static FRandom pr_botnewchasedir ("BotNewChaseDir");
|
||||
|
||||
// borrow some tables from p_enemy.cpp
|
||||
extern dirtype_t opposite[9];
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
#include "d_player.h"
|
||||
#include "actorinlines.h"
|
||||
|
||||
static FRandom pr_botmove ("BotMove", false);
|
||||
static FRandom pr_botmove ("BotMove");
|
||||
|
||||
//This function is called each tic for each bot,
|
||||
//so this is what the bot does.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue