@ -392,7 +392,7 @@ void ClearStateVariables(Player &player)
void StartWalkStand ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartWalkStand: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartWalkStand: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -436,7 +436,7 @@ void ChangeOffset(Player &player)
void StartAttack ( int pnum , Direction d )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartAttack: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartAttack: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -468,7 +468,7 @@ void StartAttack(int pnum, Direction d)
void StartRangeAttack ( int pnum , Direction d , WorldTileCoord cx , WorldTileCoord cy )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartRangeAttack: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartRangeAttack: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -510,7 +510,7 @@ player_graphic GetPlayerGraphicForSpell(spell_id spellId)
void StartSpell ( int pnum , Direction d , WorldTileCoord cx , WorldTileCoord cy )
{
if ( ( DWORD ) pnum > = MAX_PLRS )
app_fatal ( " StartSpell: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartSpell: illegal player {} " , pnum ) ) ;
Player & player = Players [ pnum ] ;
if ( player . _pInvincible & & player . _pHitPoints = = 0 & & pnum = = MyPlayerId ) {
@ -652,7 +652,7 @@ void InitLevelChange(int pnum)
bool DoWalk ( int pnum , int variant )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoWalk: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoWalk: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -805,12 +805,12 @@ bool PlrHitMonst(int pnum, int m, bool adjacentDamage = false)
int hper = 0 ;
if ( ( DWORD ) m > = MaxMonsters ) {
app_fatal ( " PlrHitMonst: illegal monster %i " , m ) ;
app_fatal ( fmt : : format ( " PlrHitMonst: illegal monster {} " , m ) ) ;
}
auto & monster = Monsters [ m ] ;
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PlrHitMonst: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PlrHitMonst: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -988,7 +988,7 @@ bool PlrHitMonst(int pnum, int m, bool adjacentDamage = false)
bool PlrHitPlr ( Player & attacker , int8_t p )
{
if ( ( DWORD ) p > = MAX_PLRS ) {
app_fatal ( " PlrHitPlr: illegal target player %i " , p ) ;
app_fatal ( fmt : : format ( " PlrHitPlr: illegal target player {} " , p ) ) ;
}
Player & target = Players [ p ] ;
@ -1068,7 +1068,7 @@ bool PlrHitObj(int pnum, Object &targetObject)
bool DoAttack ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoAttack: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoAttack: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1177,7 +1177,7 @@ bool DoAttack(int pnum)
bool DoRangeAttack ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoRangeAttack: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoRangeAttack: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1277,7 +1277,7 @@ void DamageParryItem(Player &player)
bool DoBlock ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoBlock: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoBlock: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1338,7 +1338,7 @@ void DamageArmor(Player &player)
bool DoSpell ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoSpell: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoSpell: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1369,7 +1369,7 @@ bool DoSpell(int pnum)
bool DoGotHit ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " PM_DoGotHit: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " PM_DoGotHit: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1417,7 +1417,7 @@ bool IsPlayerAdjacentToObject(Player &player, Object &object)
void CheckNewPath ( int pnum , bool pmWillBeCalled )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " CheckNewPath: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " CheckNewPath: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -1755,7 +1755,7 @@ bool PlrDeathModeOK(Player &player)
void ValidatePlayer ( )
{
if ( ( DWORD ) MyPlayerId > = MAX_PLRS ) {
app_fatal ( " ValidatePlayer: illegal player %i " , MyPlayerId ) ;
app_fatal ( fmt : : format ( " ValidatePlayer: illegal player {} " , MyPlayerId ) ) ;
}
Player & myPlayer = * MyPlayer ;
@ -2802,7 +2802,7 @@ void InitPlayer(Player &player, bool firstTime)
void InitMultiView ( )
{
if ( ( DWORD ) MyPlayerId > = MAX_PLRS ) {
app_fatal ( " InitPlayer: illegal player %i " , MyPlayerId ) ;
app_fatal ( fmt : : format ( " InitPlayer: illegal player {} " , MyPlayerId ) ) ;
}
Player & myPlayer = * MyPlayer ;
@ -2856,7 +2856,7 @@ void FixPlayerLocation(Player &player, Direction bDir)
void StartStand ( int pnum , Direction dir )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartStand: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartStand: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -2876,7 +2876,7 @@ void StartStand(int pnum, Direction dir)
void StartPlrBlock ( int pnum , Direction dir )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartPlrBlock: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartPlrBlock: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -2902,7 +2902,7 @@ void StartPlrBlock(int pnum, Direction dir)
void FixPlrWalkTags ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " FixPlrWalkTags: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " FixPlrWalkTags: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -2934,7 +2934,7 @@ void RemovePlrFromMap(int pnum)
void StartPlrHit ( int pnum , int dam , bool forcehit )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartPlrHit: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartPlrHit: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -2986,7 +2986,7 @@ void
StartPlayerKill ( int pnum , int earflag )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartPlayerKill: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartPlayerKill: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -3194,7 +3194,7 @@ StartNewLvl(int pnum, interface_mode fom, int lvl)
InitLevelChange ( pnum ) ;
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " StartNewLvl: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " StartNewLvl: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
Player & myPlayer = * MyPlayer ;
@ -3234,7 +3234,7 @@ void RestartTownLvl(int pnum)
{
InitLevelChange ( pnum ) ;
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " RestartTownLvl: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " RestartTownLvl: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -3283,7 +3283,7 @@ void StartWarpLvl(int pnum, int pidx)
void ProcessPlayers ( )
{
if ( ( DWORD ) MyPlayerId > = MAX_PLRS ) {
app_fatal ( " ProcessPlayers: illegal player %i " , MyPlayerId ) ;
app_fatal ( fmt : : format ( " ProcessPlayers: illegal player {} " , MyPlayerId ) ) ;
}
Player & myPlayer = * MyPlayer ;
@ -3451,7 +3451,7 @@ void CheckPlrSpell(bool isShiftHeld, spell_id spellID, spell_type spellType)
int sl ;
if ( ( DWORD ) MyPlayerId > = MAX_PLRS ) {
app_fatal ( " CheckPlrSpell: illegal player %i " , MyPlayerId ) ;
app_fatal ( fmt : : format ( " CheckPlrSpell: illegal player {} " , MyPlayerId ) ) ;
}
Player & myPlayer = * MyPlayer ;
@ -3630,7 +3630,7 @@ void SyncInitPlrPos(int pnum)
void SyncInitPlr ( int pnum )
{
if ( ( DWORD ) pnum > = MAX_PLRS ) {
app_fatal ( " SyncInitPlr: illegal player %i " , pnum ) ;
app_fatal ( fmt : : format ( " SyncInitPlr: illegal player {} " , pnum ) ) ;
}
Player & player = Players [ pnum ] ;
@ -3811,7 +3811,7 @@ enum {
void PlayDungMsgs ( )
{
if ( ( DWORD ) MyPlayerId > = MAX_PLRS ) {
app_fatal ( " PlayDungMsgs: illegal player %i " , MyPlayerId ) ;
app_fatal ( fmt : : format ( " PlayDungMsgs: illegal player {} " , MyPlayerId ) ) ;
}
Player & myPlayer = * MyPlayer ;