View Single Post
08/27/22, 05:58 AM   #6
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 38
What is the dbgPrint? If it functions as d() then it will not output during the time the error is caused. So it will only output the proper values returned after player activated.

EDIT: Or has that changed. Or was this not ever a thing?

If this is being done on a registered update you will see multiple occurrences of the error in the interface.log between the times the map is not available. For me, this was 10 to 12 when personally debugging this for MiniMap by Fyrakin patch with an update of 30ms.

It's easy enough to check for GetMapFilterType() == 0 before firing the OnWorldMapChanged callback.

Last edited by IsJustaGhost : 08/29/22 at 05:53 AM.
  Reply With Quote