mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-26 21:35:09 -06:00
Make UITableView rows be not selectable in chat
At some point iOS defaulted these to selectable. This makes them not selectable.
This commit is contained in:
parent
de950ccc46
commit
7e1557b5f0
@ -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__
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
|
||||
chatLabel_ = [[UILabel alloc] initWithFrame:CGRectZero];
|
||||
chatLabel_.backgroundColor = [UIColor whiteColor];
|
||||
chatLabel_.opaque = YES;
|
||||
|
||||
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user