From ba69d7378508f88c84d9a595a8a29d0ee7d3a25e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 Sep 2004 05:20:18 +0000 Subject: [PATCH] Fixed alphanumeric bug (theprog) --- plugins/nextmap.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nextmap.sma b/plugins/nextmap.sma index 5194f3b8..6208c1d5 100755 --- a/plugins/nextmap.sma +++ b/plugins/nextmap.sma @@ -101,7 +101,7 @@ readMapCycle(szFileName[], szNext[], iNext ) { new szBuffer[32], szFirst[32] if ( file_exists( szFileName ) ) { while( read_file( szFileName , i++ , szBuffer , 31 , b ) ) { - if ( !isalpha( szBuffer[0] ) || !is_map_valid( szBuffer ) ) continue + if ( !isalnum( szBuffer[0] ) || !is_map_valid( szBuffer ) ) continue if ( !iMaps ) copy( szFirst, 31, szBuffer ) if ( ++iMaps > g_pos ) { copy( szNext , iNext , szBuffer ) @@ -128,7 +128,7 @@ readMapCycle(szFileName[], szNext[], iNext ) { if ( file_exists( szFileName ) ) { while( read_file( szFileName , i++ , szBuffer , 31 , b ) ) { - if ( !isalpha( szBuffer[0] ) || !is_map_valid( szBuffer ) ) continue + if ( !isalnum( szBuffer[0] ) || !is_map_valid( szBuffer ) ) continue if ( !iMaps ) { iMaps = 1 copy( szFirst, 31, szBuffer )