MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / FReadWorldData

Function FReadWorldData

xcharts0.cpp:1248–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246// latitude, and a vector description of its outline.
1247
1248flag FReadWorldData(CONST char **nam, CONST char **loc, CONST char **lin)
1249{
1250 static CONST char **psz = szWorldData;
1251 int i;
1252
1253 *loc = *psz++;
1254 *lin = *psz++;
1255 *nam = *psz++;
1256 if (*loc[0]) {
1257 if (gs.fPrintMap && gi.fFile) {
1258 i = **nam - '0';
1259 AnsiColor(i ? kRainbowA[i] : kDkBlueA);
1260 PrintSz(*nam+1); PrintL();
1261 }
1262 return fTrue;
1263 }
1264 psz = szWorldData; // Reset stream when no data left.
1265 return fFalse;
1266}
1267
1268
1269// Enumerator to return line segments (and their color) composing Astrolog's

Callers

nothing calls this directly

Calls 2

AnsiColorFunction · 0.85
PrintSzFunction · 0.85

Tested by

no test coverage detected