Commit Graph

11108 Commits

Author SHA1 Message Date
Enno Rehling 56141ee7a1 include what you use 2021-03-14 17:42:18 +01:00
Enno Rehling d1aff44d7b Happy Pi day!
Let's use M_PI, it's available in all known math.h implementations.
2021-03-14 17:39:53 +01:00
Enno Rehling 07c1dee907 materials array is terminated with number == 0
we say nothing about rtype.
2021-03-14 16:35:55 +01:00
Enno Rehling 5b7a3cba32 buildings offer protection from volcano damage 2021-03-13 21:19:40 +01:00
Enno Rehling 5876c1a011 https://bugs.eressea.de/view.php?id=2729
castles were giving too much protection.
2021-03-13 21:18:47 +01:00
Enno Rehling 812907ffb5 Add_compile_options(/FC) fixes error messages.
The build output window was showing the wrong filename. See:
https://developercommunity.visualstudio.com/t/cmake-project-cant-click-on-error/729350
https://gitlab.kitware.com/cmake/cmake/-/issues/18261
2021-03-13 17:08:15 +01:00
Enno Rehling 14e95c9675 refactoring building_stage.construction
every building_stage has a construction.
no need to malloc it separately.
optimize some more allocations.
replace some memset and calloc calls.
2021-03-13 15:38:16 +01:00
Enno Rehling e6e5e75c4c let's try something: exparse handlers should not allocate 2021-03-13 14:39:20 +01:00
Enno Rehling c5b8839634 introduce new building_protection as a shortcut. 2021-03-13 14:25:30 +01:00
Enno Rehling 376b1106a6 rename to bt_protection 2021-03-13 14:20:37 +01:00
Enno Rehling c8d8eb85d3 code style: do not cast the result of malloc 2021-03-13 14:17:07 +01:00
Enno Rehling b9a20bb378 C90 has no inline keyword 2021-03-13 09:01:40 +01:00
Enno Rehling a9ca16e767 Testing for C90 compatibility 2021-03-13 08:55:45 +01:00
Enno Rehling 38fd655af9 remove the weird rounding macro from peasant growth 2021-03-13 08:14:01 +01:00
Enno Rehling 9c8df88525 reset rng injection before runnign test. 2021-03-12 20:43:43 +01:00
Enno Rehling dd23307e8e unused variable 2021-03-12 20:23:00 +01:00
Enno Rehling f9346f4332 lucky cats can survive a volcano 2021-03-12 20:11:45 +01:00
Enno Rehling 154e610423 unused variable 2021-03-12 19:57:27 +01:00
Enno Rehling 8dbe1b6bd3 bring back healing potion effects 2021-03-12 19:38:18 +01:00
Enno Rehling b288a62542 simplify random injection, extend it to integer constants 2021-03-12 19:24:44 +01:00
Enno Rehling cd8cd3c45d replace damage_unit with somethign that doesn't malloc 2021-03-11 20:15:25 +01:00
Enno Rehling e2a567e9c9 add tests for dice_rand term evaluation 2021-03-11 19:53:44 +01:00
Enno Rehling c0304ff572 error message whenever we recruit less than ordered. 2021-03-11 19:26:50 +01:00
Enno Rehling 1448bc4e98 Merge branch 'master' into develop 2021-03-07 14:13:02 +01:00
Enno Rehling 3715f21e6c add missing XML for drift messages 2021-03-07 14:12:22 +01:00
Enno Rehling b87d1c955c remove debug output 2021-03-07 13:05:39 +01:00
Enno Rehling e056955839 Merge branch 'master' into develop 2021-03-06 21:31:49 +01:00
Enno Rehling 1d6825f179 Merge branch 'develop' of github.com:eressea/server into develop 2021-03-06 21:31:16 +01:00
Enno Rehling 1d353fdc2a fix LUA_PATH for run-eressea.cron 2021-03-06 21:30:47 +01:00
Enno Rehling 87a08ad8ba fix LUA_PATH for run-eressea.cron 2021-03-06 21:29:36 +01:00
Enno Rehling 9109a7a61e fix output directory and point runtests script at it. 2021-03-05 18:53:44 +01:00
Enno Rehling 010dde1cb8 fix bug in last change, could not give items to peasants. 2021-03-04 15:49:12 +01:00
Enno Rehling 5df3c3dc4b fix a crash in give_cmd.
do give_unit last, because it kills the actively iterated list.
2021-03-03 20:10:51 +01:00
Enno Rehling 026bcb22cb set LUA_PATH for preview 2021-02-28 17:15:33 +01:00
Enno Rehling 7d434323a7 make use of build no. 2021-02-28 17:11:31 +01:00
Enno Rehling d53d3d9e12 set LUA_PATH for cron jobs 2021-02-28 16:02:09 +01:00
Enno Rehling 3df552676c begin work on version 3.28 2021-02-24 19:46:55 +01:00
Enno Rehling ccba09390b compile with ERESSEA_VERSION 2021-02-24 19:45:45 +01:00
Enno Rehling 961b936086
Merge pull request #930 from eressea/develop
release 3.27
2021-02-24 19:34:51 +01:00
Enno Rehling 5fd974d399 https://bugs.eressea.de/view.php?id=2573 magical resistance of adamantium 2021-02-24 19:06:04 +01:00
Enno Rehling f48551ebcb remove unicode from autoseed (races are always english tokens) 2021-02-24 18:48:12 +01:00
Enno Rehling 9f9b6f4faf rename ERESSEA_DIR to ERESSEA_ROOT 2021-02-23 17:57:44 +01:00
Enno Rehling e36cac1188 find config files in ERESSEA_DIR if config.install is not set 2021-02-23 17:19:48 +01:00
Enno Rehling 8421e64c6e travis lua_path, again 2021-02-22 20:50:49 +01:00
Enno Rehling c5cc314c46 travis, install luarocks 2021-02-22 20:08:30 +01:00
Enno Rehling 355b9ff7fc remove lunit from repository (use luarocks)
make info panel bigger, do not cut off names.
2021-02-22 19:51:46 +01:00
Enno Rehling 3508fceddc Add CMakeSettings.json to git
Expect the system LUA_PATH to point to luarocks
2021-02-22 19:32:08 +01:00
Enno Rehling 56896361fb remove luarocks from scripts 2021-02-22 09:54:02 +01:00
Enno Rehling 26bb5d4f07 remove unused ini settings 2021-02-22 02:05:47 +01:00
Enno Rehling f69a823a14 fix LUA_PATH for runtests script 2021-02-22 02:03:45 +01:00