Fix HUD messages persisting incorrectly

This commit is contained in:
cim 2015-05-21 18:03:17 +01:00
parent 52e10a892c
commit 923b3fd173

View File

@ -398,13 +398,13 @@ OOINLINE void GLColorWithOverallAlpha(const GLfloat *color, GLfloat alpha)
{
[gui printLongText:[lastLines oo_stringAtIndex:0] align:GUI_ALIGN_CENTER
color:[OOColor colorFromString:[lastLines oo_stringAtIndex:1]]
fadeTime:(permanent?[lastLines oo_floatAtIndex:2]:0.0) key:nil addToArray:nil];
fadeTime:(permanent?0.0:[lastLines oo_floatAtIndex:2]) key:nil addToArray:nil];
}
if ([lastLines count] > 3 && (line1 || ![[lastLines oo_stringAtIndex:3] isEqualToString:@""]))
{
[gui printLongText:[lastLines oo_stringAtIndex:3] align:GUI_ALIGN_CENTER
color:[OOColor colorFromString:[lastLines oo_stringAtIndex:4]]
fadeTime:(permanent?[lastLines oo_floatAtIndex:5]:0.0) key:nil addToArray:nil];
fadeTime:(permanent?0.0:[lastLines oo_floatAtIndex:5]) key:nil addToArray:nil];
}
}