File diff r2951:a52cbb930051 → r2952:e97f823d2dbe
roadveh_gui.c
Show inline comments
 
@@ -230,7 +230,7 @@ void CcCloneRoadVeh(bool success, uint t
 

	
 
static void RoadVehViewWndProc(Window *w, WindowEvent *e)
 
{
 
	switch(e->event) {
 
	switch (e->event) {
 
	case WE_PAINT: {
 
		Vehicle *v = GetVehicle(w->window_number);
 
		StringID str;
 
@@ -447,7 +447,7 @@ static void NewRoadVehWndProc(Window *w,
 
		break;
 

	
 
	case WE_CLICK:
 
		switch(e->click.widget) {
 
		switch (e->click.widget) {
 
		case 2: { /* listbox */
 
			uint i = (e->click.pt.y - 14) / 14;
 
			if (i < w->vscroll.cap) {
 
@@ -679,13 +679,13 @@ static void ClonePlaceObj(TileIndex tile
 

	
 
static void RoadDepotWndProc(Window *w, WindowEvent *e)
 
{
 
	switch(e->event) {
 
	switch (e->event) {
 
	case WE_PAINT:
 
		DrawRoadDepotWindow(w);
 
		break;
 

	
 
	case WE_CLICK: {
 
		switch(e->click.widget) {
 
		switch (e->click.widget) {
 
		case 5:
 
			RoadDepotClickVeh(w, e->click.pt.x, e->click.pt.y);
 
			break;
 
@@ -739,7 +739,7 @@ static void RoadDepotWndProc(Window *w, 
 
		break;
 

	
 
	case WE_DRAGDROP:
 
		switch(e->click.widget) {
 
		switch (e->click.widget) {
 
		case 5: {
 
			Vehicle *v;
 
			VehicleID sel = WP(w,traindepot_d).sel;
 
@@ -869,7 +869,7 @@ static void PlayerRoadVehWndProc(Window 
 
	PlayerID owner = GB(w->window_number, 0, 8);
 
	vehiclelist_d *vl = &WP(w, vehiclelist_d);
 

	
 
	switch(e->event) {
 
	switch (e->event) {
 
	case WE_PAINT: {
 
		int x = 2;
 
		int y = PLY_WND_PRC__OFFSET_TOP_WIDGET;
 
@@ -938,7 +938,7 @@ static void PlayerRoadVehWndProc(Window 
 
		}	break;
 

	
 
	case WE_CLICK: {
 
		switch(e->click.widget) {
 
		switch (e->click.widget) {
 
		case 3: /* Flip sorting method ascending/descending */
 
			vl->flags ^= VL_DESC;
 
			vl->flags |= VL_RESORT;
 
@@ -984,7 +984,7 @@ static void PlayerRoadVehWndProc(Window 
 
				}
 

	
 
				tile = TILE_MASK(tile + 1);
 
			} while(tile != _last_built_road_depot_tile);
 
			} while (tile != _last_built_road_depot_tile);
 

	
 
			ShowBuildRoadVehWindow(0);
 
		} break;