Enno Rehling
b44c5e54bf
Neuer Befehlespräfix: ! zur Unterdrückung von Fehlern.
2017-03-25 11:18:48 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
00804344fd
fix order-related memory leaks
2016-09-06 21:07:23 +02:00
Enno Rehling
fed399042d
fix piracy order aliasing issue #549
...
https://bugs.eressea.de/view.php?id=2233
piracy_cmd always works on u->thisorder, does not need an argument.
2016-09-01 20:40:07 +01:00
Enno Rehling
9a6d4a174a
remove move_on_land argument from move_cmd
2016-08-20 19:25:44 +02:00
Enno Rehling
c755de1cd5
fix the bug (move_on_land must die).
...
disable broken test (setup_pirate is incomprehensible gibberish).
2016-08-20 17:25:04 +02:00
Enno Rehling
78fa6d3a47
remove the SAIL_INTO flag
2016-06-10 20:55:27 +02:00
Steffen Mecke
9c076ba6b9
fix piracy_cmd for swimmers and flyers
2015-12-01 22:13:20 +01:00
Enno Rehling
c85e489f4f
Merge branch 'monster_leftovers' of https://github.com/stm2/server into stm2-monster_leftovers
...
Conflicts:
src/kernel/unit.c
src/laws.test.c
src/monsters.c
2015-11-25 14:25:42 +01:00
Enno Rehling
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Steffen Mecke
742a30cc39
fix seaserpents
...
seaserpents could not do piracy
seaserpents should be able to attack after move
2015-11-17 12:17:28 +01:00
Steffen Mecke
a6fe494ff4
error msg for movement should contain FOLLOW SHIP order
...
http://bugs.eressea.de/view.php?id=2161
2015-11-16 12:47:20 +01:00
Enno Rehling
a91a0f6a53
CID 22514: Out-of-bounds read (OVERRUN)
2015-10-30 15:17:39 +01:00
Enno Rehling
7e2364c296
test for actual piracy ship movement
...
refactor storm check, run less code when disabled
fix ship creation in tests
2015-10-12 19:40:20 +02:00
Enno Rehling
d252286f4c
refactor: extract function parse_ids for readability
2015-10-12 18:54:47 +02:00
Enno Rehling
4c028bceac
the early beginnings of a test for piracy
...
extract validation message from piracy_cmd
fix a SAIL/SWIM check inconsistency
2015-10-12 16:30:56 +02:00
Enno Rehling
521519805d
refactor piracy code into a module, separate from move.
2015-10-11 21:19:38 +02:00