Changeset - r12695:e3d3f57fdea8
[Not reviewed]
master
0 9 0
smatz - 15 years ago 2009-08-14 17:11:59
smatz@openttd.org
(svn r17168) -Codechange: apply coding style to if and while statements
9 files changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
src/industry_gui.cpp
Show inline comments
 
@@ -143,7 +143,7 @@ class BuildIndustryWindow : public Windo
 
		 */
 
		for (ind = 0; ind < NUM_INDUSTRYTYPES; ind++) {
 
			indsp = GetIndustrySpec(ind);
 
			if (indsp->enabled){
 
			if (indsp->enabled) {
 
				/* Rule is that editor mode loads all industries.
 
				 * In game mode, all non raw industries are loaded too
 
				 * and raw ones are loaded only when setting allows it */
src/network/core/os_abstraction.h
Show inline comments
 
@@ -112,7 +112,7 @@ static inline void OTTDfreeaddrinfo(stru
 
		free(ai->ai_addr);
 
		free(ai);
 
		ai = next;
 
	} while(ai != NULL);
 
	} while (ai != NULL);
 
}
 
#define freeaddrinfo OTTDfreeaddrinfo
 
#endif /* __MINGW32__ && __CYGWIN__ */
src/order_cmd.cpp
Show inline comments
 
@@ -852,9 +852,9 @@ CommandCost CmdMoveOrder(TileIndex tile,
 
				VehicleOrderID order_id = order->GetConditionSkipToOrder();
 
				if (order_id == moving_order) {
 
					order_id = target_order;
 
				} else if(order_id > moving_order && order_id <= target_order) {
 
				} else if (order_id > moving_order && order_id <= target_order) {
 
					order_id--;
 
				} else if(order_id < moving_order && order_id >= target_order) {
 
				} else if (order_id < moving_order && order_id >= target_order) {
 
					order_id++;
 
				}
 
				order->SetConditionSkipToOrder(order_id);
src/road_func.h
Show inline comments
 
@@ -94,7 +94,7 @@ static inline RoadBits MirrorRoadBits(Ro
 
 */
 
static inline RoadBits RotateRoadBits(RoadBits r, DiagDirDiff rot)
 
{
 
	for (; rot > (DiagDirDiff)0; rot--){
 
	for (; rot > (DiagDirDiff)0; rot--) {
 
		r = (RoadBits)(GB(r, 0, 1) << 3 | GB(r, 1, 3));
 
	}
 
	return r;
src/strgen/strgen.cpp
Show inline comments
 
@@ -621,7 +621,7 @@ static const CmdStruct *TranslateCmdForC
 
			strcmp(a->cmd, "STRING3") == 0 ||
 
			strcmp(a->cmd, "STRING4") == 0 ||
 
			strcmp(a->cmd, "STRING5") == 0 ||
 
			strcmp(a->cmd, "RAW_STRING") == 0){
 
			strcmp(a->cmd, "RAW_STRING") == 0) {
 
		return FindCmd("STRING", 6);
 
	}
 

	
src/train_cmd.cpp
Show inline comments
 
@@ -2239,7 +2239,7 @@ static TrainFindDepotData FindClosestTra
 
			/* search in the forward direction first. */
 
			DiagDirection i = TrainExitDir(v->direction, v->track);
 
			NewTrainPathfind(v->tile, 0, v->compatible_railtypes, i, (NTPEnumProc*)NtpCallbFindDepot, &tfdd);
 
			if (tfdd.best_length == UINT_MAX){
 
			if (tfdd.best_length == UINT_MAX) {
 
				tfdd.reverse = true;
 
				/* search in backwards direction */
 
				i = TrainExitDir(ReverseDir(v->direction), v->track);
src/video/cocoa/wnd_quartz.mm
Show inline comments
 
@@ -592,7 +592,7 @@ void WindowQuartzSubdriver::Draw()
 
	/* Build the region of dirty rectangles */
 
	for (i = 0; i < num_dirty_rects; i++) {
 
		/* We only need to blit in indexed mode since in 32bpp mode the game draws directly to the image. */
 
		if(buffer_depth == 8) {
 
		if (buffer_depth == 8) {
 
			BlitIndexedToView32(
 
				dirty_rects[i].left,
 
				dirty_rects[i].top,
src/widget.cpp
Show inline comments
 
@@ -1104,7 +1104,7 @@ void NWidgetCore::StoreWidgets(Widget *w
 
	/* Compute vertical resizing. */
 
	if (top_moving) {
 
		flags |= RESIZE_TB; // Only 1 widget can resize in the widget array.
 
	} else if(this->resize_y > 0) {
 
	} else if (this->resize_y > 0) {
 
		flags |= RESIZE_BOTTOM;
 
	}
 
	/* Compute horizontal resizing. */
src/window.cpp
Show inline comments
 
@@ -1869,7 +1869,7 @@ static bool HandleScrollbarScrolling()
 
			if (w->flags4 & WF_HSCROLL) {
 
				sb = &w->hscroll;
 
				i = _cursor.pos.x - _cursorpos_drag_start.x;
 
			} else if (w->flags4 & WF_SCROLL2){
 
			} else if (w->flags4 & WF_SCROLL2) {
 
				sb = &w->vscroll2;
 
				i = _cursor.pos.y - _cursorpos_drag_start.y;
 
			} else {
0 comments (0 inline, 0 general)