~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/misc_gui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman
  • Date: 2009-06-09 21:46:28 UTC
  • mfrom: (1.1.7 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090609214628-6z5uodi6178z050l
[ Matthijs Kooijman ]
* New upstream release.
* Link against libicu to enable right-to-left language support. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: misc_gui.cpp 15765 2009-03-18 19:50:34Z rubidium $ */
 
1
/* $Id: misc_gui.cpp 16245 2009-05-06 22:21:32Z rubidium $ */
2
2
 
3
3
/** @file misc_gui.cpp GUIs for a number of misc windows. */
4
4
 
520
520
        Point pt;
521
521
        const ViewPort *vp;
522
522
 
523
 
        if (msg_1 != STR_013B_OWNED_BY || GetDParam(2) >= 8) {
 
523
        if (msg_1 != STR_013B_OWNED_BY || GetDParam(2) >= MAX_COMPANIES) {
524
524
                if ((x | y) != 0) {
525
525
                        pt = RemapCoords2(x, y);
526
526
                        vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport;
1490
1490
                                this->vscroll.cap--;
1491
1491
 
1492
1492
                        case SLD_SAVE_GAME:     this->GenerateFileName(); break;
1493
 
                        case SLD_SAVE_SCENARIO: strcpy(this->edit_str_buf, "UNNAMED"); break;
 
1493
                        case SLD_SAVE_SCENARIO: strecpy(this->edit_str_buf, "UNNAMED", &this->edit_str_buf[edit_str_size - 1]); break;
1494
1494
                        default:                break;
1495
1495
                }
1496
1496