512 |
512 |
513 DrawStringMultiCenter(49, 148, STR_7058_PRESIDENT, 94); |
513 DrawStringMultiCenter(49, 148, STR_7058_PRESIDENT, 94); |
514 |
514 |
515 switch (ni->string_id & 0xF0) { |
515 switch (ni->string_id & 0xF0) { |
516 case NB_BTROUBLE: |
516 case NB_BTROUBLE: |
517 DrawStringCentered(w->width >> 1, 1, STR_7056_TRANSPORT_COMPANY_IN_TROUBLE, 0); |
517 DrawStringCentered(w->width >> 1, 1, STR_7056_TRANSPORT_COMPANY_IN_TROUBLE, TC_FROMSTRING); |
518 |
518 |
519 SetDParam(0, p->index); |
519 SetDParam(0, p->index); |
520 |
520 |
521 DrawStringMultiCenter( |
521 DrawStringMultiCenter( |
522 ((w->width - 101) >> 1) + 98, |
522 ((w->width - 101) >> 1) + 98, |
524 STR_7057_WILL_BE_SOLD_OFF_OR_DECLARED, |
524 STR_7057_WILL_BE_SOLD_OFF_OR_DECLARED, |
525 w->width - 101); |
525 w->width - 101); |
526 break; |
526 break; |
527 |
527 |
528 case NB_BMERGER: |
528 case NB_BMERGER: |
529 DrawStringCentered(w->width >> 1, 1, STR_7059_TRANSPORT_COMPANY_MERGER, 0); |
529 DrawStringCentered(w->width >> 1, 1, STR_7059_TRANSPORT_COMPANY_MERGER, TC_FROMSTRING); |
530 SetDParam(0, ni->params[0]); |
530 SetDParam(0, ni->params[0]); |
531 SetDParam(1, p->index); |
531 SetDParam(1, p->index); |
532 SetDParam(2, ni->params[1]); |
532 SetDParam(2, ni->params[1]); |
533 DrawStringMultiCenter( |
533 DrawStringMultiCenter( |
534 ((w->width - 101) >> 1) + 98, |
534 ((w->width - 101) >> 1) + 98, |
536 ni->params[1] == 0 ? STR_707F_HAS_BEEN_TAKEN_OVER_BY : STR_705A_HAS_BEEN_SOLD_TO_FOR, |
536 ni->params[1] == 0 ? STR_707F_HAS_BEEN_TAKEN_OVER_BY : STR_705A_HAS_BEEN_SOLD_TO_FOR, |
537 w->width - 101); |
537 w->width - 101); |
538 break; |
538 break; |
539 |
539 |
540 case NB_BBANKRUPT: |
540 case NB_BBANKRUPT: |
541 DrawStringCentered(w->width >> 1, 1, STR_705C_BANKRUPT, 0); |
541 DrawStringCentered(w->width >> 1, 1, STR_705C_BANKRUPT, TC_FROMSTRING); |
542 SetDParam(0, ni->params[0]); |
542 SetDParam(0, ni->params[0]); |
543 DrawStringMultiCenter( |
543 DrawStringMultiCenter( |
544 ((w->width - 101) >> 1) + 98, |
544 ((w->width - 101) >> 1) + 98, |
545 90, |
545 90, |
546 STR_705D_HAS_BEEN_CLOSED_DOWN_BY, |
546 STR_705D_HAS_BEEN_CLOSED_DOWN_BY, |
547 w->width - 101); |
547 w->width - 101); |
548 break; |
548 break; |
549 |
549 |
550 case NB_BNEWCOMPANY: |
550 case NB_BNEWCOMPANY: |
551 DrawStringCentered(w->width >> 1, 1, STR_705E_NEW_TRANSPORT_COMPANY_LAUNCHED, 0); |
551 DrawStringCentered(w->width >> 1, 1, STR_705E_NEW_TRANSPORT_COMPANY_LAUNCHED, TC_FROMSTRING); |
552 SetDParam(0, p->index); |
552 SetDParam(0, p->index); |
553 SetDParam(1, ni->params[0]); |
553 SetDParam(1, ni->params[0]); |
554 DrawStringMultiCenter( |
554 DrawStringMultiCenter( |
555 ((w->width - 101) >> 1) + 98, |
555 ((w->width - 101) >> 1) + 98, |
556 90, |
556 90, |