Tim Felgentreff
c3775bba61
fix checking of resource for terrain resources
2022-03-20 19:55:14 +01:00
Tim Felgentreff
ca6e656cdd
don't count more than 10 repeats of a message
2022-03-20 14:43:07 +01:00
Tim Felgentreff
5f490b8dea
ignore building rules when not in game (i.e. editor)
2022-03-19 10:10:36 +01:00
Tim Felgentreff
ffc888ec8d
add "non-mixing" flag for solid tiles that don't need mixing
2022-03-18 22:40:08 +01:00
Tim Felgentreff
e760c1b750
implement terrain harvesting of other resources than wood.
...
this refactoring is incomplete, since there can still be only one kind of harvestable terrain per tileset. the wood tables are still used. the only change is that we can get something other than wood from the terrain
2022-03-18 22:17:33 +01:00
Tim Felgentreff
3a2ca191f6
more flexibile default tile index
2022-03-18 22:17:31 +01:00
Tim Felgentreff
8b8398f37f
use std::bitset for user settings manipulation
2022-03-17 19:42:14 +01:00
Tim Felgentreff
fe79e510ae
don't reset NumDirections and Flip
2022-03-17 19:42:11 +01:00
Tim Felgentreff
835901850c
minimum fix for "static initializer fiasco"
2022-03-17 19:42:09 +01:00
Tim Felgentreff
34ef826f67
make SaveReplay work again
2022-03-17 19:42:05 +01:00
Tim Felgentreff
f089657f4a
newline in lua DebugPrint
2022-03-17 19:42:03 +01:00
Tim Felgentreff
1a5f6eb63f
set shared vision for teamed players
2022-03-17 19:42:01 +01:00
Tim Felgentreff
31495b4f37
expose the boolean flags that moved to GameSettings
2022-03-15 23:22:38 +01:00
Tim Felgentreff
617b5f0652
avoid vectors as public static global members
...
this can cause very bad initialization order issues.
making them private helps the compiler figure out better init order
2022-03-15 23:22:38 +01:00
Tim Felgentreff
fecaaa9808
use references instead of copy of hosts
2022-03-15 23:22:38 +01:00
Tim Felgentreff
d4b71058a4
fix and document player team assignement via presets
2022-03-15 23:22:38 +01:00
Tim Felgentreff
faa596d051
debug print replay settings
2022-03-15 23:22:37 +01:00
Tim Felgentreff
6da281bea1
allow grayscale graphic loading
2022-03-15 23:22:37 +01:00
Tim Felgentreff
6f2c989ab9
send the new client index out to clients after compacting host array
2022-03-15 23:22:37 +01:00
Tim Felgentreff
753f3e251f
compact host array before game start
2022-03-15 23:22:37 +01:00
Tim Felgentreff
a56b6cbbac
make sure we cannot build nonsolid decorative buildings on water
2022-03-15 23:16:26 +01:00
Tim Felgentreff
a79424e07c
cancel building when building from outside and stopping
2022-03-15 22:25:42 +01:00
Tim Felgentreff
00468bd53e
fix diagonal rule checks for buildings
2022-03-15 22:17:33 +01:00
Tim Felgentreff
c315a6cc40
show it as training when building from outside
2022-03-15 22:17:21 +01:00
Tim Felgentreff
0cf8f763f4
Merge pull request #391 from Wargus/tim/better-lobby
...
Simplify network setup code
2022-03-13 21:43:48 +01:00
Tim Felgentreff
0d06a982e0
drop XP support from settings file
2022-03-13 21:04:37 +01:00
Tim Felgentreff
b9cbf037d4
debug: try building with v142 toolset
2022-03-13 19:55:44 +01:00
Tim Felgentreff
1eb54db886
fix wrong bounds for network commands after refactoring
2022-03-12 15:34:53 +01:00
Tim Felgentreff
3cd6aff6d6
fix game start, also serialize presets in server state
2022-03-12 13:58:37 +01:00
Tim Felgentreff
27e28b595e
ignore linux build
2022-03-12 08:30:40 +01:00
Tim Felgentreff
6e33e81bb6
simplify network code
2022-03-10 11:36:48 +01:00
Tim Felgentreff
6067ae2d79
Merge pull request #388 from ipochto/fix/case_unsigned_narrowing
...
Fix compiling for gcc > 9.3.0
2022-03-08 20:59:21 +01:00
Tim Felgentreff
a00db769c6
new idea for player order pref
2022-03-07 22:45:36 +01:00
Tim Felgentreff
e265b6cdda
fix server setup message size
2022-03-07 20:53:04 +01:00
Tim Felgentreff
f9fed10bc9
dirty expansion to multiplayer random placement option
2022-03-07 20:53:04 +01:00
alyokhin
afada1bceb
fix compile error for gcc version >9.3.0
2022-03-07 00:47:41 +03:00
Tim Felgentreff
0802cd1cff
fixed another assert problem when game is cleaning up
2022-03-06 14:36:45 +01:00
Tim Felgentreff
4f6095ae0b
fix wrong assert
2022-03-06 14:25:25 +01:00
Tim Felgentreff
b154e98a16
always use network command queue, even in single player, for replays to work
2022-03-04 00:45:06 +01:00
Tim Felgentreff
ab03f5ae1d
don't autosave during replay
2022-03-03 22:51:45 +01:00
Tim Felgentreff
083a52fe65
AiChecksDependencies is now synced across network clients
2022-03-03 22:50:14 +01:00
Tim Felgentreff
980adaff5b
Revert "always use vendored lua"
...
This reverts commit b8c8ee0d33
.
2022-03-03 22:43:31 +01:00
Tim Felgentreff
d5ac1f0115
ensure we store team preferences in replay and always re-init GameSettings with user preferences where applicable
2022-03-03 22:43:07 +01:00
Tim Felgentreff
7677bf10c4
give games the opportunity to store custom settings in GameSettings that get synced across the network
2022-03-03 22:43:07 +01:00
Tim Felgentreff
fe8aa30ab6
debugprint game settings, fix sign of some settings
2022-03-03 22:43:07 +01:00
Tim Felgentreff
8b1ee58a6b
move sync-relevant preferences into GameSettings
2022-03-03 22:43:07 +01:00
Tim Felgentreff
1976266edb
since FoV is relevant for sync, make it part of GameSettings
2022-03-03 22:43:07 +01:00
Tim Felgentreff
bd60335b14
make changes work with tolua++, trying to be backwards compatible
2022-03-03 22:43:07 +01:00
Tim Felgentreff
f56179a421
cleanups
2022-03-03 22:43:07 +01:00
Tim Felgentreff
b8c8ee0d33
always use vendored lua
2022-03-03 22:43:07 +01:00