mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20939) -Fix: some MSVC warnings
This commit is contained in:
parent
234bee0858
commit
5ed77b4919
|
@ -66,7 +66,7 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2)
|
||||||
*/
|
*/
|
||||||
static int32 ClickSetProdCheat(int32 p1, int32 p2)
|
static int32 ClickSetProdCheat(int32 p1, int32 p2)
|
||||||
{
|
{
|
||||||
_cheats.setup_prod.value = p1;
|
_cheats.setup_prod.value = (p1 != 0);
|
||||||
InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
|
InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
|
||||||
return _cheats.setup_prod.value;
|
return _cheats.setup_prod.value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,7 +238,7 @@ bool NetworkTCPSocketHandler::CanSendReceive()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
this->writable = !!FD_ISSET(this->sock, &write_fd);
|
this->writable = !!FD_ISSET(this->sock, &write_fd);
|
||||||
return FD_ISSET(this->sock, &read_fd);
|
return FD_ISSET(this->sock, &read_fd) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
|
|
Loading…
Reference in New Issue