You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/subpopulation.cpp
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12253,12 +12253,11 @@ EidosValue_SP Subpopulation::ExecuteMethod_spatialMapColor(EidosGlobalStringID p
12253
12253
12254
12254
if (map_iter != spatial_maps_.end())
12255
12255
{
12256
-
static bool beenHere = false;
12257
12256
SpatialMap *map = map_iter->second;
12258
12257
12259
-
if (!beenHere && !gEidosSuppressWarnings) {
12258
+
if (!community_.warned_spatial_map_color_deprecated_ && !gEidosSuppressWarnings) {
12260
12259
SLIM_ERRSTREAM << "#WARNING (Subpopulation::ExecuteMethod_spatialMapColor): spatialMapColor() has been deprecated; use the SpatialMap method mapColor() instead." << std::endl;
// call out to SpatialMap::ExecuteMethod_mapValue() to do the work
@@ -12286,12 +12285,11 @@ EidosValue_SP Subpopulation::ExecuteMethod_spatialMapImage(EidosGlobalStringID p
12286
12285
12287
12286
if (map_iter != spatial_maps_.end())
12288
12287
{
12289
-
static bool beenHere = false;
12290
12288
SpatialMap *map = map_iter->second;
12291
12289
12292
-
if (!beenHere && !gEidosSuppressWarnings) {
12290
+
if (!community_.warned_spatial_map_image_deprecated_ && !gEidosSuppressWarnings) {
12293
12291
SLIM_ERRSTREAM << "#WARNING (Subpopulation::ExecuteMethod_spatialMapImage): spatialMapImage() has been deprecated; use the SpatialMap method mapImage() instead." << std::endl;
0 commit comments