mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fixed Switch Statement
Fixed Switch Statement.
This commit is contained in:
parent
aa963603ed
commit
e08e140c3c
@ -155,13 +155,16 @@ int getContinentId(const char *code)
|
|||||||
{
|
{
|
||||||
case 'A':
|
case 'A':
|
||||||
{
|
{
|
||||||
switch (code[1])
|
switch (code[1])
|
||||||
{
|
{
|
||||||
case 'F': index = CONTINENT_AFRICA; break;
|
case 'F': index = CONTINENT_AFRICA; break;
|
||||||
case 'N': index = CONTINENT_ANTARCTICA; break;
|
case 'N': index = CONTINENT_ANTARCTICA; break;
|
||||||
case 'S': index = CONTINENT_ASIA; break;
|
case 'S': index = CONTINENT_ASIA; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'E': index = CONTINENT_EUROPE; break;
|
case 'E': index = CONTINENT_EUROPE; break;
|
||||||
case 'O': index = CONTINENT_OCEANIA; break;
|
case 'O': index = CONTINENT_OCEANIA; break;
|
||||||
case 'N': index = CONTINENT_NORTH_AMERICA; break;
|
case 'N': index = CONTINENT_NORTH_AMERICA; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user