Update nominations.sp and improve compiler error messaging.
This commit is contained in:
parent
8e5992685a
commit
ff31d8df49
@ -96,7 +96,7 @@ public void OnConfigsExecuted()
|
|||||||
BuildMapMenu();
|
BuildMapMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnNominationRemoved(char[] map, int owner)
|
public void OnNominationRemoved(const char[] map, int owner)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
@ -300,8 +300,8 @@ void BuildMapMenu()
|
|||||||
g_MapMenu.AddItem(map, map);
|
g_MapMenu.AddItem(map, map);
|
||||||
g_mapTrie.SetValue(map, status);
|
g_mapTrie.SetValue(map, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_MapMenu.SetExitButton(true);
|
g_MapMenu.ExitButton = true;
|
||||||
|
|
||||||
delete excludeMaps;
|
delete excludeMaps;
|
||||||
}
|
}
|
||||||
|
@ -2191,6 +2191,14 @@ restart:
|
|||||||
|
|
||||||
if (!method || !method->target) {
|
if (!method || !method->target) {
|
||||||
error(105, map->name, lexstr);
|
error(105, map->name, lexstr);
|
||||||
|
|
||||||
|
// Fetch a fake function so errors aren't as crazy.
|
||||||
|
char tmpname[METHOD_NAMEMAX + 1];
|
||||||
|
strcpy(tmpname, map->name);
|
||||||
|
strcat(tmpname, ".");
|
||||||
|
strcat(tmpname, lexstr);
|
||||||
|
tmpname[sNAMEMAX] = '\0';
|
||||||
|
sym = fetchfunc(tmpname);
|
||||||
} else {
|
} else {
|
||||||
implicitthis = &thisval;
|
implicitthis = &thisval;
|
||||||
sym = method->target;
|
sym = method->target;
|
||||||
|
Loading…
Reference in New Issue
Block a user