comparison Items.cpp @ 233:0df4136b6aac

store_line
author Gloval
date Sun, 17 Feb 2013 18:48:03 +0400
parents b9f4ff2f6c45
children a6a8fa73b4ec
comparison
equal deleted inserted replaced
230:b9f4ff2f6c45 233:0df4136b6aac
1263 { 1263 {
1264 test_string = strtok(NULL, "\r\t\n"); 1264 test_string = strtok(NULL, "\r\t\n");
1265 if ( !test_string ) 1265 if ( !test_string )
1266 break; 1266 break;
1267 potion_value = atoi(test_string); 1267 potion_value = atoi(test_string);
1268 char c=*test_string; 1268 unsigned char c=*test_string;
1269 if ( !potion_value ) 1269 if ( !potion_value )
1270 { 1270 {
1271 if ( tolower(c) == 'e' ) 1271 if ( tolower(c) == 'e' )
1272 potion_value = atoi(test_string + 1); 1272 potion_value = atoi(test_string + 1);
1273 else 1273 else
1345 { 1345 {
1346 test_string = strtok(NULL, "\r\t\n"); 1346 test_string = strtok(NULL, "\r\t\n");
1347 if ( !test_string ) 1347 if ( !test_string )
1348 break; 1348 break;
1349 potion_note = atoi(test_string); 1349 potion_note = atoi(test_string);
1350 char c=*test_string; 1350 unsigned char c=*test_string;
1351 if ( !potion_note ) 1351 if ( !potion_note )
1352 { 1352 {
1353 if ( tolower(c) == 'e' ) 1353 if ( tolower(c) == 'e' )
1354 potion_note = atoi(test_string + 1); 1354 potion_note = atoi(test_string + 1);
1355 else 1355 else