diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-30 11:27:28 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-30 11:27:28 +0000 |
| commit | 93a10a982d3fcab0c469e2805b2034bba4e59a55 (patch) | |
| tree | afe8f05b6c1d33e5abb08077a93bbffafce710bf /config.c | |
| parent | f62edf7675f8930f39f1eb45239a674b1c3a237a (diff) | |
New upstream version 6.0.24.51.3+repack+really50upstream/6.0.24.51.3+repack+really50
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -174,16 +174,11 @@ extern BOOL Loopflag; extern char NodeMapServer[80];
extern char ChatMapServer[80];
-double LatFromLOC;
-double LonFromLOC;
-
-
VOID * zalloc(int len);
int WritetoConsoleLocal(char * buff);
char * stristr (char *ch1, char *ch2);
-int FromLOC(char * Locator, double * pLat, double * pLon);
VOID Consoleprintf(const char * format, ...)
{
@@ -347,7 +342,7 @@ static int routine[] = 14, 14, 14, 14,
14, 14 ,14, 14,
15, 0, 2, 9, 9,
-2, 2, 1, 2, 2, 2,
+2, 2, 2, 2, 2, 2,
2, 2, 0, 1, 20, 20} ; // Routine to process param
int PARAMLIM = sizeof(routine)/sizeof(int);
@@ -929,21 +924,11 @@ NextAPRS: strcat(LOCATOR, ":");
strcat(LOCATOR, ptr2);
ToLOC(atof(ptr1), atof(ptr2), LOC);
- LatFromLOC = atof(ptr1);
- LonFromLOC = atof(ptr2);
-
}
else
{
if (strlen(ptr1) == 6)
- {
strcpy(LOC, ptr1);
- FromLOC(LOC, &LatFromLOC, &LonFromLOC);
- // Randomise in square
- LatFromLOC += ((rand() / 24.0) / RAND_MAX);
- LonFromLOC += ((rand() / 12.0) / RAND_MAX);
-
- }
}
}
return 0;
|
