August 2019 Commit Log

Number of Commits:
36
Number of Active Developers:
2
partmedia 2019-08-31 10:25 Rev.: 20993

Sleep in select() instead of usleep()

This allows us to handle commands from the client as soon as they
arrive, reducing the command-handling latency.

64 lines of code changed in 5 files:

partmedia 2019-08-31 10:25 Rev.: 20992

Add separate loop to send updates to player

Now do_server() only needs to handle input from the clients. Periodic
updates are handled by send_player_updates().

55 lines of code changed in 3 files:

partmedia 2019-08-31 10:24 Rev.: 20991

Stop double-subtracting player speed

Player speed is subtracted in do_server() when commands are processed
from the client. It is subtracted again in process_events(), because
players are just objects. This means that even when players are sitting
around, a command might not be processed immediately because the player
used up all their speed in process_events().

Player objects now process_object() at an effective speed of 1.0, as
long as they didn't consume all of their speed handling commands. This
allows the first command to always be processed immediately and reduces
latency.

11 lines of code changed in 2 files:

partmedia 2019-08-31 10:15 Rev.: 20990

Remove extra call to handle_client()

0 lines of code changed in 1 file:

partmedia 2019-08-31 10:15 Rev.: 20989

Remove unused writefds

3 lines of code changed in 1 file:

partmedia 2019-08-31 10:14 Rev.: 20988

Refactor game loop

35 lines of code changed in 4 files:

partmedia 2019-08-30 00:08 Rev.: 20987

Factor out code for 'goto' command

15 lines of code changed in 3 files:

partmedia 2019-08-30 00:08 Rev.: 20986

Show correct drain message on death

3 lines of code changed in 3 files:

partmedia 2019-08-30 00:08 Rev.: 20985

Disambiguate stat change messages

10 lines of code changed in 1 file:

partmedia 2019-08-30 00:08 Rev.: 20984

Slow players down if they eat too much

18 lines of code changed in 1 file:

partmedia 2019-08-30 00:08 Rev.: 20983

Add slow_living_by()

40 lines of code changed in 2 files:

partmedia 2019-08-29 22:54 Rev.: 20982

Merge duplicate code

5 lines of code changed in 2 files:

partmedia 2019-08-25 19:45 Rev.: 20979

Clarify warning

6 lines of code changed in 2 files:

partmedia 2019-08-25 19:44 Rev.: 20978

Make warning more useful

7 lines of code changed in 1 file:

partmedia 2019-08-15 00:41 Rev.: 20958

Move init_objects()

33 lines of code changed in 3 files:

partmedia 2019-08-15 00:41 Rev.: 20957

Remove unused globals

0 lines of code changed in 1 file:

partmedia 2019-08-15 00:41 Rev.: 20956

Refactor food apply method

Add MAX_FOOD. Factor common eating effects into eat_common(). Subject
dragons to cursed food effects. Update message sent to player when
eating too much food.

93 lines of code changed in 6 files:

partmedia 2019-08-13 09:47 Rev.: 20954

Reset FLAG_CONFUSED

1 lines of code changed in 1 file:

partmedia 2019-08-12 22:40 Rev.: 20953

Invert logic for clarity

8 lines of code changed in 1 file:

partmedia 2019-08-12 22:39 Rev.: 20952

Clean up temporary files on exit

While here, document what is really going on in clean_tmp_files().

15 lines of code changed in 1 file:

partmedia 2019-08-11 22:12 Rev.: 20949

Simplify MEMORY_DEBUG

Replace realloc() with a simple direct call to calloc() for each object
and avoid free list handling. This makes MEMORY_DEBUG more useful with
modern conveniences like -fsanitize=address.

While here update documentation for MEMORY_DEBUG.

23 lines of code changed in 3 files:

partmedia 2019-08-11 22:12 Rev.: 20948

Check for object existence after running eventfunc

4 lines of code changed in 1 file:

partmedia 2019-08-11 22:12 Rev.: 20947

Remove old weather parameters

0 lines of code changed in 1 file:

silvernexus 2019-08-11 13:11 Rev.: 20946

Improve handling of formula check to handle cauldron and tool differences.

39 lines of code changed in 3 files:

silvernexus 2019-08-11 08:58 Rev.: 20945

Add artifacts and formulae for black/white leather cloaks.

45 lines of code changed in 3 files:

partmedia 2019-08-10 22:08 Rev.: 20942

Stop destroying items based only on die roll

Always look at the material type and resistances. Previously, immune
objects could still be destroyed by attacks; for example, ice storm
could cause an ice cube to unfreeze.

0 lines of code changed in 1 file:

partmedia 2019-08-10 22:07 Rev.: 20941

Set FLAG_NO_PICK when weight is zero

Some parts of the code still only check for FLAG_NO_PICK. Fix this class
of bug by setting FLAG_NO_PICK automatically.

6 lines of code changed in 1 file:

partmedia 2019-08-10 22:07 Rev.: 20940

Post-decrement food field

An item with one food left should not be removed immediately.

1 lines of code changed in 1 file:

partmedia 2019-08-10 22:07 Rev.: 20939

Make objects in icecubes decay slower

12 lines of code changed in 1 file:

partmedia 2019-08-10 22:07 Rev.: 20938

Refactor

40 lines of code changed in 1 file:

partmedia 2019-08-10 22:07 Rev.: 20937

Fix build

3 lines of code changed in 2 files:

partmedia 2019-08-10 16:16 Rev.: 20936

Deduplicate code

13 lines of code changed in 1 file:

partmedia 2019-08-10 16:16 Rev.: 20935

Add login message for new characters with accounts

5 lines of code changed in 2 files:

partmedia 2019-08-09 13:57 Rev.: 20929

Refactor

21 lines of code changed in 1 file:

partmedia 2019-08-09 13:57 Rev.: 20928

Remove manual output socket buffer handling

Our manual buffer code doesn't handle partial writes. While logging in a
client, this sometimes causes the server to skip the tail of a partial
write, resulting in corrupt data being sent to the client.

Instead of handling this issue ourselves, grow the OS output socket
buffer to SOCKETBUFSIZE and disconnect the client if this buffer ever
gets filled, consistent with current behavior, only now it also works
during login.

32 lines of code changed in 6 files:

partmedia 2019-08-08 22:14 Rev.: 20927

Avoid double-linking LIBS

1 lines of code changed in 1 file:

July 2019 »

Generated by StatSVN 0.7.0