# HG changeset patch # User rubidium # Date 1257269408 0 # Node ID 24547db62b5c6cafa1ccbcfc519de4047d193694 # Parent ab95ef079c823e712d16f6d05a3f8134f027c996 (svn r17963) -Codechange: some documentation style diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1101,7 +1101,7 @@ if (score_type == SCORE_LOAN) val = needed - val; /* Draw the amount we have against what is needed - * For some of them it is in currency format */ + * For some of them it is in currency format */ SetDParam(0, val); SetDParam(1, needed); switch (score_type) { diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -133,7 +133,7 @@ p.PrepareToRead(); /* If the size does not match the packet must be corrupted. - * Otherwise it will be marked as corrupted later on. */ + * Otherwise it will be marked as corrupted later on. */ if (nbytes != p.size) { DEBUG(net, 1, "received a packet with mismatching size from %s", address.GetAddressAsString()); return; diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1944,7 +1944,7 @@ if (image != SPR_FLAT_GRASS_TILE) image += rti->total_offset; /* adjust ground tile for desert - * don't adjust for snow, because snow in depots looks weird */ + * don't adjust for snow, because snow in depots looks weird */ if (IsSnowRailGround(ti->tile) && _settings_game.game_creation.landscape == LT_TROPIC) { if (image != SPR_FLAT_GRASS_TILE) { image += rti->snow_offset; // tile with tracks diff --git a/src/saveload/cargopacket_sl.cpp b/src/saveload/cargopacket_sl.cpp --- a/src/saveload/cargopacket_sl.cpp +++ b/src/saveload/cargopacket_sl.cpp @@ -21,11 +21,11 @@ if (CheckSavegameVersion(44)) { Vehicle *v; /* If we remove a station while cargo from it is still enroute, payment calculation will assume - * 0, 0 to be the source of the cargo, resulting in very high payments usually. v->source_xy - * stores the coordinates, preserving them even if the station is removed. However, if a game is loaded - * where this situation exists, the cargo-source information is lost. in this case, we set the source - * to the current tile of the vehicle to prevent excessive profits - */ + * 0, 0 to be the source of the cargo, resulting in very high payments usually. v->source_xy + * stores the coordinates, preserving them even if the station is removed. However, if a game is loaded + * where this situation exists, the cargo-source information is lost. in this case, we set the source + * to the current tile of the vehicle to prevent excessive profits + */ FOR_ALL_VEHICLES(v) { const VehicleCargoList::List *packets = v->cargo.Packets(); for (VehicleCargoList::ConstIterator it(packets->begin()); it != packets->end(); it++) { @@ -36,10 +36,10 @@ } /* Store position of the station where the goods come from, so there - * are no very high payments when stations get removed. However, if the - * station where the goods came from is already removed, the source - * information is lost. In that case we set it to the position of this - * station */ + * are no very high payments when stations get removed. However, if the + * station where the goods came from is already removed, the source + * information is lost. In that case we set it to the position of this + * station */ Station *st; FOR_ALL_STATIONS(st) { for (CargoID c = 0; c < NUM_CARGO; c++) { diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -415,8 +415,8 @@ switch (_sl.block_mode) { case CH_RIFF: /* Ugly encoding of >16M RIFF chunks - * The lower 24 bits are normal - * The uppermost 4 bits are bits 24:27 */ + * The lower 24 bits are normal + * The uppermost 4 bits are bits 24:27 */ assert(length < (1 << 28)); SlWriteUint32((uint32)((length & 0xFFFFFF) | ((length >> 24) << 28))); break; diff --git a/src/script/squirrel_helper.hpp b/src/script/squirrel_helper.hpp --- a/src/script/squirrel_helper.hpp +++ b/src/script/squirrel_helper.hpp @@ -147,10 +147,10 @@ } /** - * Helper class to recognize the function type (retval type, args) and use the proper specialization - * for SQ callback. The partial specializations for the second arg (Tis_void_retval) are not possible - * on the function. Therefore the class is used instead. - */ + * Helper class to recognize the function type (retval type, args) and use the proper specialization + * for SQ callback. The partial specializations for the second arg (Tis_void_retval) are not possible + * on the function. Therefore the class is used instead. + */ template ::Yes> struct HelperT; /** diff --git a/src/viewport.cpp b/src/viewport.cpp --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1442,10 +1442,10 @@ if (IsInvisibilitySet(TO_SIGNS) && ss->string != STR_WHITE_SIGN) continue; /* if we didn't draw a rectangle, or if transparant building is on, - * draw the text in the colour the rectangle would have */ + * draw the text in the colour the rectangle would have */ if (IsTransparencySet(TO_SIGNS) && ss->string != STR_WHITE_SIGN) { /* Real colours need the IS_PALETTE_COLOUR flag - * otherwise colours from _string_colourmap are assumed. */ + * otherwise colours from _string_colourmap are assumed. */ colour = (TextColour)_colour_gradient[ss->colour][6] | IS_PALETTE_COLOUR; }