Commit Graph

32 Commits

Author SHA1 Message Date
Enno Rehling 366f0feeaa need to mark ships for fishing even if not drifting (this code is bad) 2012-07-08 19:15:06 -07:00
Enno Rehling 9d8e02d094 test that movement into coastal regions is blocked when no harbor exists, unless ship is allowed in this terrain. 2012-07-01 18:00:31 -07:00
Enno Rehling d98742e4b5 Merge branch 'e4combat' 2012-06-27 20:43:39 -07:00
Enno Rehling a8324f16fd make some prototypes use bool, not int 2012-06-24 08:04:12 +02:00
Enno Rehling f893ea03b6 E4 combat prototype (WIP) 2012-06-23 22:50:56 -07:00
Enno Rehling 1861268109 remove custom boolean type
use bool when we have C99, or our own typedef for bool
2012-06-23 22:41:07 -07:00
Gerd Wellenreuther 74ddb1f881 Bugfix 1922 entering of RF_BLOCKED regions with ships 2012-06-07 21:06:14 +02:00
Enno Rehling 347ff0dd77 snprintf is evil and dangerous. 2012-05-29 12:17:25 -07:00
Enno Rehling eea6bdb888 comparison to boolean values is bad form. 2012-05-23 00:09:19 -07:00
Enno Rehling 08adc91534 gcc 4.6 is a lot more picky about unused variables, so I shall appease it. 2012-05-20 00:16:12 -07:00
Enno Rehling 0c2531f259 remove UFL_OWNER anywhere but in save.c 2012-05-18 22:34:04 -07:00
Enno Rehling 775e8edae1 as much as possible, replace the UFL_OWNER flag with checking the owner the canonical way. 2012-05-17 16:40:50 -07:00
Enno Rehling 7789e0534e implement ship-ownership transfer as a function
test the reorder_units function
2012-05-17 12:23:25 -07:00
Enno Rehling 9cbdaea27f More tests for ships.
ship->owner is now in use, but there's an assert failing in shipspeed() during report writing.
2012-05-17 01:14:43 -07:00
Enno Rehling d12fe2dbed begin making shipowner use ship->owner.
fix a broken test caused by locale_string returning null.
2012-05-17 00:13:30 -07:00
Enno Rehling 116a1ee8ba remove tnode from anywhere, and use a void* instead, in preparation for a new findtoken implementation. this needs to have a good testing.
lots of warning fixes for high warning levels in visual studio also
2012-05-15 15:04:23 -07:00
Enno Rehling 58208e0db5 Improve sailing messages to include the region.
http://bugs.eressea.de/view.php?id=1729
2011-05-02 23:34:35 -07:00
Enno Rehling 9802eecd79 code prettyfication 2011-04-24 16:18:01 -07:00
Enno Rehling 3d98275d58 we never checked if building maintenance was paid (see also #1740) 2011-03-09 21:00:29 +01:00
Enno Rehling 2c02c38803 insects trying to land in glaciers should not damage ships (cf. #1729) 2011-03-09 21:00:26 +01:00
Enno Rehling e01c6bb8b1 make merge request sing with Eressea
added a missing file (move_test.c)
changing the way tests are included
making some lua code prettier (too many parens)
2011-03-08 21:06:38 -08:00
Enno Rehling 8714957a61 fixed two bugs: harbours were not unique and multiple instances of unique buildings could still be built 2011-03-09 00:28:37 +01:00
Enno Rehling b4c5607747 compiling with -pedantic on linux 2011-03-08 08:44:20 +01:00
Enno Rehling 9c8779b303 indentation rules, slightly updated 2011-03-07 08:24:52 +01:00
Enno Rehling fb7a642d47 indentation rules, strictly applied 2011-03-07 08:02:35 +01:00
Enno Rehling d75ee1a057 Make the code compile on Visual Studio again, fixing type conversion warnings and C99-isms.
Signed-off-by: Enno Rehling <enno@eressea.de>
2011-03-06 19:29:20 -08:00
Enno Rehling 623c0dce84 empty ships sink 2011-03-06 12:43:18 +01:00
Enno Rehling cb4f7a03c6 configurable ship damage 2011-03-06 12:43:18 +01:00
Enno Rehling 357de0f249 fix a crash where flying ships try to anchor 2010-10-16 22:18:30 +02:00
Enno Rehling a5e712580f undo more CRLF screwups. 2010-08-08 01:14:01 -07:00
Enno Rehling 14b3ed309f use external folder for all libraries (VS2010)
new repository structure
2010-08-07 23:05:54 -07:00
Enno Rehling 72505ab8f3 moving to a new repository layout.
step 1: shared folder.
2010-08-07 22:07:17 -07:00