mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9) Fixed a couple of warnings and minor coding issues
This commit is contained in:
parent
4d148bf0fa
commit
6c87ef6c65
|
@ -1977,7 +1977,6 @@ TownNameGenerator * const _town_name_generators[] = {
|
||||||
|
|
||||||
uint32 GetOldTownName(uint32 townnameparts, byte old_town_name_type)
|
uint32 GetOldTownName(uint32 townnameparts, byte old_town_name_type)
|
||||||
{
|
{
|
||||||
uint32 a = 0;
|
|
||||||
switch (old_town_name_type) {
|
switch (old_town_name_type) {
|
||||||
case 0: case 3: /* English, American */
|
case 0: case 3: /* English, American */
|
||||||
/* Already OK */
|
/* Already OK */
|
||||||
|
|
|
@ -1173,7 +1173,7 @@ bool NetworkUDPSearchServer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#else // ENABLE_NETWORK
|
#else // not ENABLE_NETWORK
|
||||||
|
|
||||||
// stubs
|
// stubs
|
||||||
void NetworkInitialize(const char *hostname) {}
|
void NetworkInitialize(const char *hostname) {}
|
||||||
|
@ -1187,5 +1187,5 @@ void NetworkProcessCommands() {}
|
||||||
void NetworkStartSync() {}
|
void NetworkStartSync() {}
|
||||||
void NetworkUDPListen(int port) {}
|
void NetworkUDPListen(int port) {}
|
||||||
void NetworkUDPReceive() {}
|
void NetworkUDPReceive() {}
|
||||||
bool NetworkUDPSearchServer() {}
|
bool NetworkUDPSearchServer() { return false; }
|
||||||
#endif // ENABLE_NETWORK
|
#endif // ENABLE_NETWORK
|
||||||
|
|
2
ttd.c
2
ttd.c
|
@ -491,7 +491,7 @@ int ttd_main(int argc, char* argv[])
|
||||||
case 'v': ttd_strlcpy(videodriver, mgo.opt, sizeof(videodriver)); break;
|
case 'v': ttd_strlcpy(videodriver, mgo.opt, sizeof(videodriver)); break;
|
||||||
case 'n': {
|
case 'n': {
|
||||||
network = 1;
|
network = 1;
|
||||||
if ((bool)mgo.opt) {
|
if (mgo.opt) {
|
||||||
network_conn = mgo.opt;
|
network_conn = mgo.opt;
|
||||||
network++;
|
network++;
|
||||||
}
|
}
|
||||||
|
|
2
w32dm.c
2
w32dm.c
|
@ -111,4 +111,4 @@ static void DMusicMidiSetVolume(byte vol)
|
||||||
SetVolume(vol);
|
SetVolume(vol);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue