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

« back to all changes in this revision

Viewing changes to src/newgrf_cargo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: newgrf_cargo.cpp 13871 2008-07-29 22:37:54Z rubidium $ */
 
1
/* $Id: newgrf_cargo.cpp 15513 2009-02-18 09:14:41Z peter1138 $ */
 
2
 
 
3
/** @file newgrf_cargo.cpp Implementation of NewGRF cargoes. */
2
4
 
3
5
#include "stdafx.h"
4
 
#include "openttd.h"
5
6
#include "debug.h"
6
 
#include "cargotype.h"
7
7
#include "newgrf.h"
8
 
#include "newgrf_callbacks.h"
9
8
#include "newgrf_spritegroup.h"
10
9
#include "newgrf_cargo.h"
11
10
 
12
 
 
13
11
static uint32 CargoGetRandomBits(const ResolverObject *object)
14
12
{
15
13
        return 0;
33
31
        DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable);
34
32
 
35
33
        *available = false;
36
 
        return 0;
 
34
        return UINT_MAX;
37
35
}
38
36
 
39
37
 
64
62
        res->last_value      = 0;
65
63
        res->trigger         = 0;
66
64
        res->reseed          = 0;
 
65
        res->count           = 0;
 
66
        res->grffile         = cs->grffile;
67
67
}
68
68
 
69
69