diff --git a/game/SimUI.cpp b/game/SimUI.cpp index c9c74a2..dd65b41 100644 --- a/game/SimUI.cpp +++ b/game/SimUI.cpp @@ -2649,7 +2649,7 @@ bool MiniMapControl::CalcPoweredRadar() #pragma clang diagnostic ignored "-Wtautological-undefined-compare" #endif - if (gpmm == NULL) + if (this == NULL) return false; #ifdef __clang__ @@ -2689,7 +2689,7 @@ void MiniMapControl::RedrawTRect(TRect *ptrc) #pragma clang diagnostic ignored "-Wtautological-undefined-compare" #endif - if (gpmm == NULL) + if (this == NULL) return; #ifdef __clang__ diff --git a/game/iphone/chatcell.mm b/game/iphone/chatcell.mm index 73910b1..e2100d4 100644 --- a/game/iphone/chatcell.mm +++ b/game/iphone/chatcell.mm @@ -7,6 +7,8 @@ return nil; } + self.selectionStyle = UITableViewCellSelectionStyleNone; + chatLabel_ = [[UILabel alloc] initWithFrame:CGRectZero]; chatLabel_.backgroundColor = [UIColor whiteColor]; chatLabel_.opaque = YES; diff --git a/game/iphone/chatviewcontroller.mm b/game/iphone/chatviewcontroller.mm index d35883a..79c9a61 100644 --- a/game/iphone/chatviewcontroller.mm +++ b/game/iphone/chatviewcontroller.mm @@ -423,7 +423,7 @@ ChatCell *cell = (ChatCell *)[tableView_ dequeueReusableCellWithIdentifier:@"chatcell"]; if (cell == nil) { - cell = [[[ChatCell alloc] initWithStyle:UITableViewCellSelectionStyleNone + cell = [[[ChatCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"chatcell"] autorelease]; } [self initializeChatCell:(int)indexPath.row cell:cell];