Changeset - r12696:305ddde22b99
[Not reviewed]
master
0 4 0
smatz - 15 years ago 2009-08-14 17:14:04
smatz@openttd.org
(svn r17169) -Codechange: apply coding style to some for statements
4 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/misc/crc32.hpp
Show inline comments
 
@@ -12,13 +12,13 @@ struct CCrc32
 
	{
 
		uint32 crc = 0xffffffff;
 
		const uint32 *pTable = CrcTable();
 

	
 
		uint8 *begin = (uint8*)pBuffer;
 
		uint8 *end = begin + nCount;
 
		for(uint8 *cur = begin; cur < end; cur++)
 
		for (uint8 *cur = begin; cur < end; cur++)
 
			crc = (crc >> 8) ^ pTable[cur[0] ^ (uint8)(crc & 0xff)];
 
		crc ^= 0xffffffff;
 

	
 
		return crc;
 
	}
 

	
src/network/core/host.cpp
Show inline comments
 
@@ -114,13 +114,13 @@ static void NetworkFindBroadcastIPsInter
 
	if (sock == INVALID_SOCKET) return;
 

	
 
	DWORD len = 0;
 
	int num = 2;
 
	INTERFACE_INFO *ifo = CallocT<INTERFACE_INFO>(num);
 

	
 
	for(;;) {
 
	for (;;) {
 
		if (WSAIoctl(sock, SIO_GET_INTERFACE_LIST, NULL, 0, ifo, num * sizeof(*ifo), &len, NULL, NULL) == 0) break;
 
		free(ifo);
 
		if (WSAGetLastError() != WSAEFAULT) {
 
			closesocket(sock);
 
			return;
 
		}
src/npf.cpp
Show inline comments
 
@@ -461,13 +461,13 @@ static int32 NPFFindStationOrTile(AyStar
 
 */
 
static const PathNode *FindSafePosition(PathNode *path, const Train *v)
 
{
 
	/* If there is no signal, reserve the whole path. */
 
	PathNode *sig = path;
 

	
 
	for(; path->parent != NULL; path = path->parent) {
 
	for (; path->parent != NULL; path = path->parent) {
 
		if (IsSafeWaitingPosition(v, path->node.tile, path->node.direction, true, _settings_game.pf.forbid_90_deg)) {
 
			sig = path;
 
		}
 
	}
 

	
 
	return sig;
src/widget.cpp
Show inline comments
 
@@ -2317,13 +2317,13 @@ bool CompareWidgetArrays(const Widget *o
 
	if (ow->var != gw->var) { \
 
		same = false; \
 
		if (report) DEBUG(misc, 1, "index %d, \"" #var "\" field: original %d, generated %d, (difference %d)", idx, ow->var, gw->var, ow->var - gw->var); \
 
	}
 

	
 
	bool same = true;
 
	for(int idx = 0; ; idx++) {
 
	for (int idx = 0; ; idx++) {
 
		const Widget *ow = orig + idx;
 
		const Widget *gw = gen + idx;
 

	
 
		CHECK(type, "%d")
 
		CHECK(display_flags, "0x%x")
 
		CHECK(colour, "%d")
0 comments (0 inline, 0 general)