int iTexScalingLevel; // 1 = off, 2 = 2x, ..., 5 = 5x

so i think should be 

if (g_Config.bMipMap && g_Config.iTexScalingLevel == 1) {