Commit Graph

101 Commits

Author SHA1 Message Date
Eyal Sawady 4a080a89dc
Don't set RAND_MAX 2020-10-19 12:06:00 -04:00
Eyal Sawady 0eee7e7d81
Fix glibc build 2020-10-19 12:01:37 -04:00
Eyal Sawady 5cc7ec66e9
Check return value of setsockopt for IPv6 2020-10-19 10:44:20 -04:00
Eyal Sawady 073f9554c4
Fix yet more warnings
Platforms tested and compiling with no warnings:
- musl x86_64 clang, -Wall -Wextra -pedantic -Weverything -Wno-padded -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-disabled-macro-expansion
- musl x86_64 gcc, -Wall -Wextra -pedantic
- musl x86_64 cproc
- glibc x86_64 gcc, -Wall -Wextra -pedantic
- glibc x86_64 cproc
2020-10-19 10:21:09 -04:00
Eyal Sawady a4016a61a9
Add IPv6 support 2020-10-19 10:03:53 -04:00
Eyal Sawady d263f4ed74
Don't display ejected bodies
Also distinguish more clearly between found and unfound bodies.
2020-10-19 10:03:53 -04:00
Martijn Braam 6143b30212
Clean up debug printfs 2020-10-19 15:48:26 +02:00
Martijn Braam 3826e6e7d7
Added spaceship to the README 2020-10-19 15:47:27 +02:00
Martijn Braam fcf07b9a48
Implemented long tasks 2020-10-19 15:43:10 +02:00
Sireesh Kodali d867cf3c14
set SO_REUSEADDR on the server socket 2020-10-19 12:45:29 +02:00
Sireesh Kodali c42ade3016
Generate random numbers in a less biased way 2020-10-19 12:45:20 +02:00
Martijn Braam 13320240fd
Give someone admin permissions if admin disconnects 2020-10-18 23:33:43 +02:00
Martijn Braam d6b002abaa
Fix false ending 2020-10-18 23:14:54 +02:00
Martijn Braam 679e59284b
Added movement notifications 2020-10-18 23:03:27 +02:00
Martijn Braam 820a28e9bd
Explicitly block escape char 2020-10-18 22:30:30 +02:00
Eyal Sawady a132288ae6
Reset players to cafeteria after discussion 2020-10-18 15:05:23 -04:00
Eyal Sawady 74a037e027
Prevent ghosts from reporting 2020-10-18 15:02:36 -04:00
Eyal Sawady 633d6bbf2a
Mention whether or not bodies are corpses 2020-10-18 14:48:03 -04:00
Martijn Braam 1d7ed80f36
Added license 2020-10-18 20:41:53 +02:00
Martijn Braam 9119c53d9e
Added README 2020-10-18 20:32:48 +02:00
Eyal Sawady d3b2f20b53
Remove debugging printfs 2020-10-18 13:29:57 -04:00
Martijn Braam 33b0f7134b
More playtesting fixes 2020-10-18 19:29:06 +02:00
Eyal Sawady 9444aa05df
End game when crew completes all tasks 2020-10-18 17:58:29 +02:00
Martijn Braam c8aa0ddeae
Added map 2020-10-18 17:35:24 +02:00
Martijn Braam 0d52208922
Playtesting bugfixes 2020-10-18 15:51:36 +02:00
Eyal Sawady ee9a02ab9b
Major refactorings
- A few minor style improvements
- Fix a typo
- Use snprintf instead of sprintf
- Refactor location descriptions and doors to use singletons mapping
  locations to location data rather than hardcoding them into adventure()
- Remove unused player.addr
- Fix a few bugs
- Refactor win condition checking into a separate function
- Statically allocate player array
- Improve various error messages
2020-10-18 12:06:28 +02:00
Martijn Braam 4db73e5e52
Added chat limit in discussion phase 2020-10-18 02:16:39 +02:00
Martijn Braam 0a6d0f0719
Added dramatic intro 2020-10-18 01:53:25 +02:00
Martijn Braam 8af1e379f3
Added leave messages 2020-10-18 01:25:27 +02:00
Martijn Braam 33a5aa2e90
Don't send chat to unnamed players 2020-10-18 00:54:55 +02:00
Martijn Braam ff2e41fbce
Added emergency button 2020-10-18 00:51:22 +02:00
Martijn Braam fcd1946401
Add player list in lobby 2020-10-18 00:44:19 +02:00
Eyal Sawady 53240c261d
Add Makefile
Also remove unnessecary stuff from .gitignore and fix meson binary name.
2020-10-18 00:29:40 +02:00
Martijn Braam 1c2bf6da12
Implement /me 2020-10-18 00:28:31 +02:00
Martijn Braam f1ae494273
Implement ¯\_(ツ)_/¯ 2020-10-18 00:20:56 +02:00
Martijn Braam 3f098f336c
Sanitize chat 2020-10-18 00:16:20 +02:00
Eyal Sawady ae5b8e5ac8
Fix warnings 2020-10-17 23:48:44 +02:00
Martijn Braam af11e24bc2
Set POSIX.1-2001 2020-10-17 23:44:06 +02:00
Eyal Sawady 37b86663e8
Fix warnings 2020-10-17 23:31:32 +02:00
Martijn Braam 5bf9a92f99
More playtesting fixes 2020-10-17 23:25:39 +02:00
Martijn Braam 3601c0477c
Fixes after playtesting 2020-10-17 16:19:22 +02:00
Martijn Braam 45f7323ae4
Fixed crash on player joining 2020-10-17 13:37:10 +02:00
Martijn Braam 85677ce502
Small fixes 2020-10-17 12:49:03 +02:00
Martijn Braam 586c9fb906
Can now complete tasks 2020-10-17 12:24:15 +02:00
Martijn Braam 75d9e7f87a
Added long tasks 2020-10-17 11:52:35 +02:00
Martijn Braam b1e71b7f8f
cleanup 2020-10-17 11:44:48 +02:00
Martijn Braam 76be62efb0
Change spelling again 2020-10-17 11:29:47 +02:00
Martijn Braam 51451f37a1
Spelling fix 2020-10-17 11:19:58 +02:00
Martijn Braam deef4c7c5f
List tasks better 2020-10-17 02:03:24 +02:00
Martijn Braam 48e6687d20
Assign short tasks 2020-10-17 01:55:27 +02:00