equal
deleted
inserted
replaced
425 uint32 id_v = (pt.y - NET_PRC__OFFSET_TOP_WIDGET) / NET_PRC__SIZE_OF_ROW; |
425 uint32 id_v = (pt.y - NET_PRC__OFFSET_TOP_WIDGET) / NET_PRC__SIZE_OF_ROW; |
426 |
426 |
427 if (id_v >= this->vscroll.cap) return; // click out of bounds |
427 if (id_v >= this->vscroll.cap) return; // click out of bounds |
428 id_v += this->vscroll.pos; |
428 id_v += this->vscroll.pos; |
429 |
429 |
430 this->server = this->servers[id_v]; |
430 this->server = (id_v < this->servers.Length()) ? this->servers[id_v] : NULL; |
431 this->SetDirty(); |
431 this->SetDirty(); |
432 } break; |
432 } break; |
433 |
433 |
434 case NGWW_LASTJOINED: { |
434 case NGWW_LASTJOINED: { |
435 NetworkGameList *last_joined = NetworkGameListAddItem(inet_addr(_network_last_host), _network_last_port); |
435 NetworkGameList *last_joined = NetworkGameListAddItem(inet_addr(_network_last_host), _network_last_port); |