Skip to content

Commit

Permalink
id_ca: Log the level name (from TED) when caching a map
Browse files Browse the repository at this point in the history
This is a useful debug line, IMO.
  • Loading branch information
sulix committed Sep 27, 2024
1 parent b08359c commit de8ca8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/id_ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,8 @@ void CA_CacheMap(int mapIndex)
//Make sure we don't purge it accidentally.
MM_SetPurge((void **)(&CA_MapHeaders[mapIndex]), 0);
}

CK_Cross_LogMessage(CK_LOG_MSG_NORMAL, "CA_CacheMap: Loading map %d (\"%s\")\n", mapIndex, CA_MapHeaders[mapIndex]->name);

int planeSize = CA_MapHeaders[mapIndex]->width * CA_MapHeaders[mapIndex]->height * 2;

Expand Down

0 comments on commit de8ca8b

Please sign in to comment.