Enno Rehling
e9b2918209
fix source encodings, break umlauts, ASCII everywhere
2019-03-03 09:41:15 +01:00
Enno Rehling
bc5f2ea6d1
move keyword.[hc] to util
2018-09-29 18:13:32 +02:00
Enno Rehling
a373807189
move attrib and event modules to kernel
2018-09-29 11:37:17 +02:00
Enno Rehling
398a258658
cppcheck: variable scopes, etc.
2018-02-11 15:57:31 +01:00
Enno Rehling
1035a98fd3
make attrib use a variant, not a custom union.
...
change attrib_type methods to take a variant, not the entire attrib.
2018-02-09 21:20:43 +01:00
Enno Rehling
f98eab56c4
platform.h is only for WIN32 now.
...
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling
5b1d27542a
reduce dependence on platform.h.
...
gradually stop using MAX and MIN (mistakes were made).
2017-12-28 18:29:40 +01:00
Enno Rehling
333ef06fef
hackish optimization for STUDY orders
2017-10-13 19:33:29 +02:00
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