debian/0000755000000000000000000000000012116160727007171 5ustar debian/lincity-ng-data.install0000644000000000000000000000003312114471045013535 0ustar usr/share/games/lincity-ng debian/docs0000644000000000000000000000001512114471045010034 0ustar README TODO debian/changelog0000644000000000000000000002142312116150712011036 0ustar lincity-ng (2.0-4) unstable; urgency=low * Add -f-switch to rm command when removing the font files in debian/rules. Prevents FTBFS on buildd. -- Markus Koschany Thu, 07 Mar 2013 18:41:28 +0100 lincity-ng (2.0-3) unstable; urgency=low [ Markus Koschany ] * Add myself to Uploaders. * Switch to package format 3.0 (quilt). * Bump compat level to 9 and require debhelper >= 9. * debian/control: - Bump Standards-Version to 3.9.4, no changes needed. - Drop quilt dependency. Package format 3.0 uses quilt by default. - Do not use versioned dependencies. They are not necessary anymore. - Add ${misc:Depends} to binary packages. - lincity-ng-data: Suggest lincity-ng. - Update to use canonical Vcs-fields. Fix broken Vcs-Browser link. - Change Conflicts to Breaks and Replaces relation which allows the dpkg package management system to find the best upgrade path more freely. * debian/rules: - Use dh sequencer to simplify debian/rules. - Build with --parallel and --autotools_dev addon. - Install RELNOTES as upstream changelog. Do not install it via docs file. - Build with hardening=+all. * Update debian/copyright to copyright format 1.0. * Install doc/lincity-ng.6 via manpages files. * Install arch-dependent files with lincity-ng.install and arch-independent files with lincity-ng-data.install. * Drop README.Debian. The information presented in this README file is outdated. (Closes: #638667) * New patches: - create-valid-desktop-file.patch: Remove deprecated UTF-8 Encoding key. Fix a typo and use the icon name without file extension. Add keywords. (LP: #674519) - Add fix-format-is-not-a-string-literal-error.patch to prevent a FTBFS. - fix-hyphen-is-used-as-minus-sign.patch: Creates a 100% valid manpage. - fix-out-of-boundary-crash.patch: The game can crash in rare cicumstances if you zoom out as far as possible and select the bulldozer tool. This patch fixes the issue. Thanks to Alain Baeckeroot for the report and patch. (Closes: #604172) - Add dep3 headers to all patches. * Symlink only sans.ttf, the other two fonts were removed by upstream. [ Gonéri Le Bouder ] * Remove myself from Uploaders. [ Cyril Brulebois ] * Update my mail address. [ Bruno "Fuddl" Kleinert ] * Fix typo in lincity-ng-data package description. (Closes: #557683) -- Markus Koschany Thu, 07 Mar 2013 16:37:16 +0100 lincity-ng (2.0-2) unstable; urgency=low * Upload to unstable -- Gonéri Le Bouder Sat, 14 Feb 2009 15:12:24 +0100 lincity-ng (2.0-1) experimental; urgency=low * New upstream release * Update debian/copyright * Standard version: 3.8.0, no change * Add failback-to-800x600.diff to be able to launch the game even if the screen doesn't accept 1024x768 -- Gonéri Le Bouder Tue, 03 Feb 2009 21:20:45 +0100 lincity-ng (1.1.2-1) unstable; urgency=low * New upstream release (Closes: #449367). * Move the homepage from the long description to a source field. * Add Vcs-Browser and Vcs-Svn fields. * debian/rules: - Add a find on *.desktop, piped into a sed command to delete the deprecated/obsoleted Encoding line. - Trim trailing whitespaces. - Use relative symlinks from /usr/share/games/lincity-ng/fonts to ../../../fonts/truetype/ttf-dejavu (Policy 10.5). -- Cyril Brulebois Wed, 05 Dec 2007 05:13:23 +0100 lincity-ng (1.1.1-2) unstable; urgency=high [ Gonéri Le Bouder ] * dpkg-buildpackage -B doesn't create the data package anymore * remove the dependency on ttf-bitstream-vera [ Cyril Brulebois ] * Add a conflict against lincity-ng-data (<< 1.1.1) to the lincity-ng package to make it possible to upgrade from older installations (Closes: #444887). * Set urgency to “high” since it also affects testing users. -- Cyril Brulebois Mon, 01 Oct 2007 18:52:36 +0200 lincity-ng (1.1.1-1) unstable; urgency=low * new upstream release (Closes: #439034) - remove patches merged in upstream: gcc-4.3.diff and remove-Application-section-from-desktopfile.diff - the hyphen-used-as-minus-sign typo in the manpage is fixed upstream, remove the fix from debian/rules * update the changelog * install the official icon instead of debian/lincity-ng.xpm and use convert from imagemagick to create a .xpm file for Debian menu system * rules: add a dh_desktop call to launch update-desktop-database * use ttf-dejavu instead of ttf-bitstream-vera (Closes: #440909) -- Gonéri Le Bouder Wed, 22 Aug 2007 00:09:56 +0200 lincity-ng (1.1.0-2) unstable; urgency=low [ Gonéri Le Bouder ] * jam -q: exit the build process as soon as a file failes * add patch gcc-4.3.diff (Closes: #417374) - add quilt in the build-deps * keeps the desktop file in lincity-ng package instead of lincity-ng-data because a .desktop file shouldn't be installed without the binary it belongs * add remove-Application-section-from-desktopfile.diff to remove the wrong section "Application" from the desktop file * clean the files and directorys after the jam clean -- Gonéri Le Bouder Tue, 21 Aug 2007 09:51:13 +0000 lincity-ng (1.1.0-1) unstable; urgency=low [ Eddy Petrișor ] * add ttf-dejavu as a first font option since is a superset of ttf-bitstream-vera (Closes: #404396) [ Gonéri Le Bouder ] * New upstream release (Closes: #412217) * Add myself in Uploaders: * copy config.{sub,guess} from autotools-dev during the configure * lincity depends on lincity-ng-data (= ${source:Version}) instead of (>= 0.9rc1) to avoid unexpected error * add icon description in Debian menu. Thanks Mark Purcell (Closes: #407359) * game data in /usr/share/games [ Alexander Schmehl ] * add .xpm icon for the menu file -- Gonéri Le Bouder Wed, 11 Jul 2007 22:41:50 +0200 lincity-ng (1.0.3-2) unstable; urgency=low * Acknowledge the previous NMU, thanks to Steinar H. Gunderson. * Add myself in the Uploaders field (Closes: #401776). * In debian/rules, clean target: - remove config.h along with config.{log,status} in the clean target, so that it does not pollute the source diff; - add a dash before ``jam clean'' so that cleaning an already-clean build tree doesn't generate an error; - remove Jamconfig as well as config.* files, but after ``jam clean''. * Bump debhelper compatibility from 4 to 5 (no change needed). * Bump Standards-Version from 3.6.2 to 3.7.2 (no change needed). * Update FSF address in debian/copyright. * Add newlines at the end of debian/docs and debian/README.Debian. * Add a debian/watch file. * Fix a dash (s{-}{\-}) in the doc/lincity-ng.6 manpage by adding a sed line in debian/rules, a temporary file, and adjust cleanup to leave source untouched. * Adjust commentaries in debian/rules. * Remove TODO in debian/docs (there were two of them). * Add an URL in debin/control. * Add a note in debian/copyright about Debian Games Team taking over the packaging, under the same license. -- Cyril Brulebois Fri, 8 Dec 2006 19:32:41 +0000 lincity-ng (1.0.3-1.1) unstable; urgency=high * Non-maintainer upload. * Add pkg-config to build-depends; fixes FTBFS, patch from Jérémy Bobbio. (Closes: #397694) -- Steinar H. Gunderson Thu, 16 Nov 2006 00:28:49 +0100 lincity-ng (1.0.3-1) unstable; urgency=low * New upstream release (Closes: #379220) * Move lincity-ng into group maintenance by the Debian Games Group * Acknowledge GCC 4.1 NMU, thanks Martin. (Closes: #357339) -- Moritz Muehlenhoff Sun, 6 Aug 2006 22:23:58 +0200 lincity-ng (1.0.2-1.1) unstable; urgency=low * NMU as part of the GCC 4.1 transition. * Remove extra qualification from C++ header file (Closes: #357339) -- Martin Michlmayr Fri, 26 May 2006 12:35:18 +0200 lincity-ng (1.0.2-1) unstable; urgency=low * New upstream release: - Recompile against new sdlgfx (Closes: #339627) - Swedish translation has been merged (Closes: #338052) -- Moritz Muehlenhoff Thu, 17 Nov 2005 19:30:49 +0100 lincity-ng (1.0.1-1) unstable; urgency=low * New upstream release -- Moritz Muehlenhoff Sat, 23 Jul 2005 11:49:00 +0200 lincity-ng (1.0-1) unstable; urgency=low * New upstream release - Man page has been merged upstream * Bumped Standard-Version to 3.6.2 (no changes needed) -- Moritz Muehlenhoff Sun, 3 Jul 2005 22:29:21 +0200 lincity-ng (0.9rc1-1) unstable; urgency=low * Initial release (Closes: #311787) -- Moritz Muehlenhoff Sat, 4 Jun 2005 01:38:11 +0200 debian/manpages0000644000000000000000000000002112114471045010674 0ustar doc/lincity-ng.6 debian/rules0000755000000000000000000000160312116147675010260 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ --parallel --with autotools_dev override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ --bindir=\$${prefix}/games \ --datarootdir=\$${prefix}/share/games \ --mandir=\$${prefix}/share/man override_dh_auto_build: jam -q override_dh_auto_install: jam -sprefix=$(CURDIR)/debian/tmp/usr install override_dh_install: # create a .xpm file for the Debian menu convert -monitor -resize 32x32 \ $(CURDIR)/debian/tmp/usr/share/games/pixmaps/lincity-ng.png \ $(CURDIR)/debian/tmp/usr/share/games/pixmaps/lincity-ng.xpm dh_install # Remove duplicate Bitstream Vera font, use links file and symlink # to Debian's ttf-dejavu package. rm -f $(CURDIR)/debian/lincity-ng-data/usr/share/games/lincity-ng/fonts/* override_dh_installchangelogs: dh_installchangelogs RELNOTES debian/watch0000644000000000000000000000045712115223724010224 0ustar # mandatory line -- format version version=3 # Berlios project, ID 2929, tar.bz2 source opts=downloadurlmangle=s/prdownload/download/ \ http://developer.berlios.de/project/showfiles.php?group_id=2929 \ http://prdownload.berlios.de/lincity-ng/lincity-ng-(.*)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/menu0000644000000000000000000000035612114471045010060 0ustar ?package(lincity-ng):needs="X11" \ section="Games/Strategy" \ icon="/usr/share/pixmaps/lincity-ng.xpm" \ title="LinCity NG" \ longtitle="LinCity NG - city simulator game with polished graphics" \ command="/usr/games/lincity-ng" debian/compat0000644000000000000000000000000212114247065010366 0ustar 9 debian/lincity-ng-data.links0000644000000000000000000000013612114503671013214 0ustar usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf usr/share/games/lincity-ng/fonts/sans.ttf debian/control0000644000000000000000000000452712114467651010610 0ustar Source: lincity-ng Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Cyril Brulebois , Markus Koschany Build-Depends: autotools-dev, debhelper (>= 9), imagemagick, jam, libphysfs-dev, libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-ttf2.0-dev, libsdl1.2-dev, libxml2-dev, pkg-config, zlib1g-dev Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/lincity-ng/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/lincity-ng/ Homepage: http://lincity-ng.berlios.de/ Package: lincity-ng Architecture: any Depends: lincity-ng-data (= ${source:Version}), ttf-dejavu, ${misc:Depends}, ${shlibs:Depends} Breaks: lincity-ng-data (<< 1.1.1) Replaces: lincity-ng-data (<< 1.1.1) Description: City simulator game with polished graphics LinCity-NG is a City Simulation Game. It is a polished and improved version of the old LinCity game: You are required to build and maintain a city. You must feed, house, provide jobs and goods for your residents. You can build a sustainable economy with the help of renewable energy and recycling, or you can go for broke and build rockets to escape from a pollution ridden and resource starved planet, it's up to you. Due to the finite resources available in any one place, this is not a game that you can leave for long periods of time. This game is similar to the commercial simulation game with a similar name. Package: lincity-ng-data Architecture: all Depends: ${misc:Depends} Suggests: lincity-ng Description: Media files for the city simulator game LinCity-NG LinCity-NG is a City Simulation Game. It is a polished and improved version of the old LinCity game: You are required to build and maintain a city. You must feed, house, provide jobs and goods for your residents. You can build a sustainable economy with the help of renewable energy and recycling, or you can go for broke and build rockets to escape from a pollution ridden and resource starved planet, it's up to you. Due to the finite resources available in any one place, this is not a game that you can leave for long periods of time. This game is similar to the commercial simulation game with a similar name. . This package contains the architecture independent game media files. debian/copyright0000644000000000000000000002056512116132675011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: LinCityNG Source: http://lincity-ng.berlios.de Files: * Copyright: 1995-1997, I J Peters 1997-2002, Greg Sharp 2000-2004, Corey Keasling 2004, Ingo Ruhnke 2005, David Kamphausen 2005, Jimmy Salmon 2005-2007, Wolfgang Becker 2004-2008, Matthias Braun 2008, Xabier Cancela License: GPL-2+ Comment: The models, SVG images and sound effects are dual-licensed under the GNU General Public and the "Creative Commons Attribution Sharealike v2" license. This Debian package makes use of the GPL. Please refer to the CREDITS file for more information about contributors to LinCityNG. Files: src/tinygettext/findlocale.* License: MIT Copyright: 2004, Adam D. Moss Files: data/fonts/*.ttf Copyright: 2003, Bitstream, Inc 2006, Tavmjong Bah License: Bitstream-Vera-Fonts-Copyright and Arev-Fonts-Copyright Comment: Fonts are (c) Bitstream (see below). DejaVu changes are in public domain. Glyphs imported from Arev fonts are (c) Tavmjung Bah (see below). Files: debian/* Copyright: 2005-2006, Moritz Muehlenhoff 2006, Martin Michlmayr 2006, Steinar H. Gunderson 2006-2007, Cyril Brulebois 2007-2009, Gonéri Le Bouder 2013, Markus Koschany License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License, version 2, can be found in /usr/share/common-licenses/GPL-2. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is fur- nished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . Except as contained in this notice, the name of the Author of the Software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the Author. License: Bitstream-Vera-Fonts-Copyright Bitstream Vera Fonts Copyright ------------------------------ . Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. License: Arev-Fonts-Copyright Arev Fonts Copyright ------------------------------ . Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Tavmjong Bah" or the word "Arev". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Tavmjong Bah Arev" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from Tavmjong Bah. For further information, contact: tavmjong @ free . fr. debian/lincity-ng.install0000644000000000000000000000016112116132766012636 0ustar usr/games/lincity-ng usr/share/games/applications usr/share usr/share/games/pixmaps usr/share debian/source/0000755000000000000000000000000012114250575010470 5ustar debian/source/format0000644000000000000000000000001412114250575011676 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012116133165010614 5ustar debian/patches/series0000644000000000000000000000025512114701700012025 0ustar failback-to-800x600.patch fix-format-not-a-string-literal-error.patch fix-hyphen-is-used-as-minus-sign.patch create-valid-desktop-file.patch fix-out-of-boundary-crash.patch debian/patches/failback-to-800x600.patch0000644000000000000000000000157712114701700014740 0ustar From: Debian Games Team Date: Sat, 2 Mar 2013 15:12:49 +0100 Subject: failback-to-800x600 --- src/lincity-ng/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lincity-ng/main.cpp b/src/lincity-ng/main.cpp index b6a1d1b..549c7a4 100644 --- a/src/lincity-ng/main.cpp +++ b/src/lincity-ng/main.cpp @@ -217,6 +217,14 @@ void initVideo(int width, int height) SDL_Surface* screen = SDL_SetVideoMode(width, height, bpp, flags); SDL_WM_SetCaption(PACKAGE_NAME " " PACKAGE_VERSION, 0); + + if(!screen) { + // Debian: Try harder to get a working screen + // The default 1024x768 is to large for most of the + // netBook computer. + screen = SDL_SetVideoMode(800, 600, bpp, flags); + } + if(!screen) { std::stringstream msg; msg << "Couldn't set video mode (" debian/patches/fix-out-of-boundary-crash.patch0000644000000000000000000000257712114702477016572 0ustar From: Alain Baeckeroot Date: Sun, 3 Mar 2013 01:01:27 +0100 Subject: fix out of boundary crash Patch was committed to upstream's svn repository. Revision 1605. Bug: http://bugs.debian.org/604172 --- src/lincity-ng/GameView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lincity-ng/GameView.cpp b/src/lincity-ng/GameView.cpp index ca100fd..cca6740 100644 --- a/src/lincity-ng/GameView.cpp +++ b/src/lincity-ng/GameView.cpp @@ -1724,6 +1724,12 @@ void GameView::printStatusMessage( std::string message ){ int GameView::bulldozeCost( MapPoint tile ){ int group; int prize = 0; + if ( (tile.x < 0) || (tile.x >= WORLD_SIDE_LEN) || (tile.y < 0) || (tile.y >= WORLD_SIDE_LEN) ) + return 0; + + if( selected_module_type == CST_NONE ) + return 0; + if (MP_TYPE( tile.x, tile.y) == CST_USED) group = MP_GROUP( MP_INFO(tile.x,tile.y).int_1, MP_INFO(tile.x,tile.y).int_2 ); @@ -1737,6 +1743,9 @@ int GameView::buildCost( MapPoint tile ){ if( selected_module_type == CST_NONE ){ return 0; } + if ( (tile.x < 0) || (tile.x >= WORLD_SIDE_LEN) || (tile.y < 0) || (tile.y >= WORLD_SIDE_LEN) ) + return 0; + if (MP_TYPE( tile.x, tile.y ) == CST_USED) return 0; if (( selected_module_type == CST_TRACK_LR || selected_module_type == CST_ROAD_LR || debian/patches/fix-hyphen-is-used-as-minus-sign.patch0000644000000000000000000000171012114701700017744 0ustar From: Markus Koschany Date: Sat, 2 Mar 2013 22:43:26 +0100 Subject: fix hyphen is used as minus sign Forwarded: http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=3429&group_id=2929 --- doc/lincity-ng.6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lincity-ng.6 b/doc/lincity-ng.6 index b0ca5c6..b24ec0c 100644 --- a/doc/lincity-ng.6 +++ b/doc/lincity-ng.6 @@ -76,7 +76,7 @@ speficify how quick is the fast speed. (eg. \-q 1 is the fastest possible with f .SH UPGRADE from 1.x to 2.x A new format for saved games is used since 2.0, but old games can be imported and automagically converted. Just copy $HOME/.lincity/* (old location for lincity and lincity-ng 1.x) to $HOME/.lincity-ng/ (new location since 2.0). - cp -a ~/.lincity/* ~/.lincity-ng/ + cp \-a ~/.lincity/* ~/.lincity-ng/ At the start of the game, one message will popup to remind you have some changes to do in your city. debian/patches/create-valid-desktop-file.patch0000644000000000000000000000212312114701700016551 0ustar From: Markus Koschany Date: Sat, 2 Mar 2013 22:55:02 +0100 Subject: create valid desktop file Forwarded: http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=3428&group_id=2929 --- lincity-ng.desktop | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lincity-ng.desktop b/lincity-ng.desktop index 7137451..0e13116 100644 --- a/lincity-ng.desktop +++ b/lincity-ng.desktop @@ -1,13 +1,14 @@ [Desktop Entry] Type=Application Version=1.0 -Encoding=UTF-8 Name=Lincity-NG GenericName=City Simulation Game GenericName[de]=Stadtsimulationsspiel -Comment=Plan and Build a city and take care of transport, economics, electricityand others. -Icon=lincity-ng.png +Comment=Plan and build a city and take care of transport, economics, electricity and others. +Comment[de]=Plane und baue eine Stadt und kümmere dich um das Verkehrswesen, die Wirtschaft, Elektrizität und mehr. +Icon=lincity-ng Exec=lincity-ng Terminal=false StartupNotify=false Categories=Game;Simulation; +Keywords=game;simulation;city;strategy;3D;economics;transport;buildings; debian/patches/fix-format-not-a-string-literal-error.patch0000644000000000000000000000241312114701700021004 0ustar From: Markus Koschany Date: Sat, 2 Mar 2013 15:14:38 +0100 Subject: fix format not a string literal error Forwarded: http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=3430&group_id=2929 --- src/lincity-ng/Dialog.cpp | 2 +- src/lincity/fileutil.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lincity-ng/Dialog.cpp b/src/lincity-ng/Dialog.cpp index 241a28e..1137b8a 100644 --- a/src/lincity-ng/Dialog.cpp +++ b/src/lincity-ng/Dialog.cpp @@ -378,7 +378,7 @@ void Dialog::gameStats(){ setParagraphN( "statistic_text", line++, outf ); } if (sustain_flag){ - snprintf (outf, maxlength, _("Economy is sustainable")); + snprintf (outf, maxlength, _("Economy is sustainable"), "%s"); setParagraphN( "statistic_text", line++, outf ); } snprintf (outf, maxlength, _("Population %d of which %d are not housed.") diff --git a/src/lincity/fileutil.cpp b/src/lincity/fileutil.cpp index fa6edbd..7a2cc5c 100644 --- a/src/lincity/fileutil.cpp +++ b/src/lincity/fileutil.cpp @@ -498,7 +498,7 @@ void check_savedir(void) void malloc_failure(void) { - printf(_("Out of memory: malloc failure\n")); + printf(_("Out of memory: malloc failure \n"), "%s"); exit(1); }