minor fixes

This commit is contained in:
SergoDobro 2024-08-20 16:44:42 +03:00
parent bbec3cdc58
commit 2f564a29fa
2 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@ namespace ZoFo.GameCore.GameObjects
}
public void EndAttack(string a)
{
if (AppManager.Instance.gamestate != GameState.HostPlaying) return;
if (AppManager.Instance.server is null) return;
var damagedPlayers=AppManager.Instance.server.collisionManager.GetPlayersInZone(collisionComponent.triggerRectangle.SetOrigin(position));
//TODO ДАМАЖИТЬ ИГРОКОВ В ЗОНЕ
if (damagedPlayers.Length>0) { DebugHUD.DebugLog("End of" + a);

View file

@ -119,8 +119,8 @@ public class Player : LivingEntity
break;
case ScopeState.Right:
case ScopeState.Left:
if (idName != "player_look_right")
StartAnimation("player_look_right");
if (idName != "player_look_right_down_weapon")
StartAnimation("player_look_right_down_weapon");
break;
case ScopeState.TopRight:
case ScopeState.TopLeft: