jblanked пре 9 месеци
родитељ
комит
e6b58359ef
1 измењених фајлова са 0 додато и 17 уклоњено
  1. 0 17
      game/enemy.c

+ 0 - 17
game/enemy.c

@@ -441,23 +441,6 @@ static void pvp_position(GameContext *game_context, EntityContext *enemy, Entity
         return;
     }
 
-    // Get player context
-    PlayerContext *pctx = entity_context_get(game_context->player);
-    if (!pctx)
-    {
-        FURI_LOG_E(TAG, "Failed to get player context");
-        return;
-    }
-
-    // check username
-    if (strlen(enemy->username) == 0 ||
-        is_str(enemy->username, "SYSTEM_ENEMY") ||
-        is_str(pctx->username, enemy->username))
-    {
-        // Invalid username
-        return;
-    }
-
     if (game_context->fhttp->last_response != NULL && strlen(game_context->fhttp->last_response) > 0)
     {
         // for debugging