train_gui.c
changeset 2549 5587f9a38563
parent 2548 49c8a096033f
child 2561 233dafd7cf6c
equal deleted inserted replaced
2548:49c8a096033f 2549:5587f9a38563
  1459 			return;
  1459 			return;
  1460 
  1460 
  1461 		case 7: { /* Matrix to show vehicles */
  1461 		case 7: { /* Matrix to show vehicles */
  1462 			uint32 id_v = (e->click.pt.y - PLY_WND_PRC__OFFSET_TOP_WIDGET) / PLY_WND_PRC__SIZE_OF_ROW_SMALL;
  1462 			uint32 id_v = (e->click.pt.y - PLY_WND_PRC__OFFSET_TOP_WIDGET) / PLY_WND_PRC__SIZE_OF_ROW_SMALL;
  1463 
  1463 
  1464 			if (id_v >= w->vscroll.cap) { return;} // click out of bounds
  1464 			if (id_v >= w->vscroll.cap) return; // click out of bounds
  1465 
  1465 
  1466 			id_v += w->vscroll.pos;
  1466 			id_v += w->vscroll.pos;
  1467 
  1467 
  1468 			{
  1468 			{
  1469 				Vehicle *v;
  1469 				Vehicle *v;