Mercurial > hg > openttd
changeset 17137:0e25103841ef draft
(svn r21875) -Codechange: indentation of some comments was wrong
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 21 Jan 2011 01:38:30 +0000 |
parents | 85e9c2a2bdb2 |
children | 562c2d5b012b |
files | src/network/core/tcp_listen.h src/network/network_client.cpp src/saveload/saveload.cpp src/strings.cpp src/train_cmd.cpp src/vehicle_gui.cpp |
diffstat | 6 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/tcp_listen.h +++ b/src/network/core/tcp_listen.h @@ -75,7 +75,7 @@ /* Can we handle a new client? */ if (!Tsocket::AllowConnection()) { /* no more clients allowed? - * Send to the client that we are full! */ + * Send to the client that we are full! */ Packet p(Tfull_packet); p.PrepareToSend();
--- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -209,8 +209,8 @@ if (my_client->CanSendReceive()) { NetworkRecvStatus res = my_client->ReceivePackets(); if (res != NETWORK_RECV_STATUS_OKAY) { - /* The client made an error of which we can not recover - * close the client and drop back to main menu */ + /* The client made an error of which we can not recover. + * Close the connection and drop back to the main menu. */ my_client->ClientError(res); return false; }
--- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -2026,12 +2026,12 @@ this->z.avail_out = sizeof(buf); /** - * For the poor next soul who sees many valgrind warnings of the - * "Conditional jump or move depends on uninitialised value(s)" kind: - * According to the author of zlib it is not a bug and it won't be fixed. - * http://groups.google.com/group/comp.compression/browse_thread/thread/b154b8def8c2a3ef/cdf9b8729ce17ee2 - * [Mark Adler, Feb 24 2004, 'zlib-1.2.1 valgrind warnings' in the newgroup comp.compression] - */ + * For the poor next soul who sees many valgrind warnings of the + * "Conditional jump or move depends on uninitialised value(s)" kind: + * According to the author of zlib it is not a bug and it won't be fixed. + * http://groups.google.com/group/comp.compression/browse_thread/thread/b154b8def8c2a3ef/cdf9b8729ce17ee2 + * [Mark Adler, Feb 24 2004, 'zlib-1.2.1 valgrind warnings' in the newgroup comp.compression] + */ int r = deflate(&this->z, mode); /* bytes were emitted? */
--- a/src/strings.cpp +++ b/src/strings.cpp @@ -1745,8 +1745,8 @@ if (bad_font) { /* Our fallback font does miss characters too, so keep the - * user chosen font as that is more likely to be any good than - * the wild guess we made */ + * user chosen font as that is more likely to be any good than + * the wild guess we made */ UninitFreeType(); InitFreeType(); }
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2772,7 +2772,7 @@ } /* we may need to update crossing we were approaching, - * but must be updated after the train has been marked crashed */ + * but must be updated after the train has been marked crashed */ TileIndex crossing = TrainApproachingCrossingTile(this); if (crossing != INVALID_TILE) UpdateLevelCrossing(crossing);
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1416,7 +1416,7 @@ case VL_SHARED_ORDERS: // Shared Orders if (this->vehicles.Length() == 0) { /* We can't open this window without vehicles using this order - * and we should close the window when deleting the order */ + * and we should close the window when deleting the order. */ NOT_REACHED(); } SetDParam(0, this->vscroll->GetCount());