X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_player.pas;h=71a202301fbc3b20aeeea1df5496eae2a60c4b9c;hb=6f611376783122c46f1613ebd74586e3e746c191;hp=7db6de1ed38b0f592bbf5ea1fc77e9c21b7d6033;hpb=5659cfd3d124f0f387e1941101c03656b46e56e8;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 7db6de1..71a2023 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -2328,12 +2328,12 @@ var begin if FAlive then begin - indX := FObj.X+FObj.Rect.X; - indY := FObj.Y; if g_Texture_Get('TEXTURE_PLAYER_INDICATOR', ID) then begin e_GetTextureSize(ID, @indW, @indH); - e_Draw(ID, indX + indW div 2, indY - indH, 0, True, False); + indX := FObj.X + FObj.Rect.X + (FObj.Rect.Width - indW) div 2; + indY := FObj.Y; + e_Draw(ID, indX, indY - indH, 0, True, False); end; end; //e_TextureFontPrint(indX, indY, FName, gStdFont); // Shows player name overhead @@ -5281,7 +5281,7 @@ begin end; FFirePainTime := FFirePainTime - 1; FFireTime := FFireTime - 1; - if ((FFireTime mod 36) = 0) and (FMegaRulez[MR_INVUL] < gTime) then + if ((FFireTime mod 33) = 0) and (FMegaRulez[MR_INVUL] < gTime) then FModel.PlaySound(MODELSOUND_PAIN, 1, FObj.X, FObj.Y); if (FFireTime = 0) and g_Game_IsNet and g_Game_IsServer then MH_SEND_PlayerStats(FUID); @@ -5314,7 +5314,7 @@ begin else if FHealth > -50 then Kill(K_HARDKILL, FLastSpawnerUID, FLastHit) else Kill(K_EXTRAHARDKILL, FLastSpawnerUID, FLastHit); - if FAlive and (FFireTime <= 0) then + if FAlive and ((FLastHit <> HIT_FLAME) or (FFireTime <= 0)) then begin if FDamageBuffer <= 20 then FModel.PlaySound(MODELSOUND_PAIN, 1, FObj.X, FObj.Y) else if FDamageBuffer <= 55 then FModel.PlaySound(MODELSOUND_PAIN, 2, FObj.X, FObj.Y)