Author Topic: Controls repeating in Controls  (Read 818 times)

I've added the if thing but there still repeating:

Code: [Select]
if(!$addedPlatformMaps){
$remapDivision[$remapCount] = "Building Platform";
$remapName[$remapCount] = "x axis +";
$remapCmd[$remapCount] = "xAxisP";
$remapCount++;
$remapName[$remapCount] = "x axis -";
$remapCmd[$remapCount] = "xAxisN";
$remapCount++;
$remapName[$remapCount] = "y axis +";
$remapCmd[$remapCount] = "yAxisP";
$remapCount++;
$remapName[$remapCount] = "y axis -";
$remapCmd[$remapCount] = "yAxisN";
$remapCount++;
$remapName[$remapCount] = "z axis +";
$remapCmd[$remapCount] = "zAxisP";
$remapCount++;
$remapName[$remapCount] = "z axis -";
$remapCmd[$remapCount] = "zAxisN";
$remapCount++;
}


Code: [Select]
if( !$addedPlatformMaps ) {
   ...
   $addedPlatformMaps = true;
}

Don't forget that part :)