code cleanup (by using function to reset delay counter)
[rocksndiamonds.git] / src / files.c
index aaafe68a64aba2ef4db5d69a4354e371b6fdb4ff..a1901caea52d996c7fb7a5cd58f975d35f102165 100644 (file)
@@ -3642,7 +3642,7 @@ static void CopyNativeLevel_RND_to_EM(struct LevelInfo *level)
   // initialize player positions and delete players from the playfield
   for (y = 0; y < cav->height; y++) for (x = 0; x < cav->width; x++)
   {
-    if (ELEM_IS_PLAYER(level->field[x][y]))
+    if (IS_PLAYER_ELEMENT(level->field[x][y]))
     {
       int player_nr = GET_PLAYER_NR(level->field[x][y]);