mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r21875) -Codechange: indentation of some comments was wrong
This commit is contained in:
parent
1ac51128f5
commit
656caf16db
@ -75,7 +75,7 @@ public:
|
||||
/* 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();
|
||||
|
||||
|
@ -209,8 +209,8 @@ void ClientNetworkGameSocketHandler::ClientError(NetworkRecvStatus res)
|
||||
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;
|
||||
}
|
||||
|
@ -2026,12 +2026,12 @@ struct ZlibSaveFilter : SaveFilter {
|
||||
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? */
|
||||
|
@ -1745,8 +1745,8 @@ void CheckForMissingGlyphsInLoadedLanguagePack()
|
||||
|
||||
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();
|
||||
}
|
||||
|
@ -2772,7 +2772,7 @@ uint Train::Crash(bool flooded)
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
|
@ -1416,7 +1416,7 @@ public:
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user