src/window.h
branchnoai
changeset 9625 3301b1b3889c
parent 9624 b71483f2330f
child 9629 66dde6412125
equal deleted inserted replaced
9624:b71483f2330f 9625:3301b1b3889c
   402 
   402 
   403 struct vp_d {
   403 struct vp_d {
   404 	VehicleID follow_vehicle;
   404 	VehicleID follow_vehicle;
   405 	int32 scrollpos_x;
   405 	int32 scrollpos_x;
   406 	int32 scrollpos_y;
   406 	int32 scrollpos_y;
       
   407 	int32 dest_scrollpos_x;
       
   408 	int32 dest_scrollpos_y;
   407 };
   409 };
   408 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp_d));
   410 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp_d));
   409 
   411 
   410 /* vp2_d is the same as vp_d, except for the data_# values.. */
   412 /* vp2_d is the same as vp_d, except for the data_# values.. */
   411 struct vp2_d {
   413 struct vp2_d {
   412 	VehicleID follow_vehicle;
   414 	VehicleID follow_vehicle;
   413 	int32 scrollpos_x;
   415 	int32 scrollpos_x;
   414 	int32 scrollpos_y;
   416 	int32 scrollpos_y;
       
   417 	int32 dest_scrollpos_x;
       
   418 	int32 dest_scrollpos_y;
   415 	byte data_1;
   419 	byte data_1;
   416 	byte data_2;
   420 	byte data_2;
   417 	byte data_3;
   421 	byte data_3;
   418 };
   422 };
   419 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp2_d));
   423 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp2_d));
   420 
   424 
   421 struct news_d {
   425 struct news_d {
   422 	uint16 follow_vehicle;
   426 	uint16 follow_vehicle;
   423 	int32 scrollpos_x;
   427 	int32 scrollpos_x;
   424 	int32 scrollpos_y;
   428 	int32 scrollpos_y;
       
   429 	int32 dest_scrollpos_x;
       
   430 	int32 dest_scrollpos_y;
   425 	NewsItem *ni;
   431 	NewsItem *ni;
   426 };
   432 };
   427 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(news_d));
   433 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(news_d));
   428 
   434 
   429 struct highscore_d {
   435 struct highscore_d {