Directory server/trunk/common/

Total Files:
39
Deleted Files:
4
Lines of Code:
28535

[root]/server/trunk/common

Lines of Code

server/trunk/common/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 1645 (100.0%) 41772 (100.0%) 25.3
ryo_saeba 603 (36.7%) 23262 (55.7%) 38.5
akirschbaum 396 (24.1%) 10250 (24.5%) 25.8
anmaster 156 (9.5%) 3601 (8.6%) 23.0
partmedia 241 (14.7%) 1568 (3.8%) 6.5
mwedel 111 (6.7%) 1552 (3.7%) 13.9
silvernexus 61 (3.7%) 654 (1.6%) 10.7
gros 19 (1.2%) 328 (0.8%) 17.2
tchize 4 (0.2%) 197 (0.5%) 49.2
quinet 31 (1.9%) 172 (0.4%) 5.5
aaron_baugher 1 (0.1%) 126 (0.3%) 126.0
kbulgrien 9 (0.5%) 28 (0.1%) 3.1
lalo 1 (0.1%) 11 (0.0%) 11.0
cavesomething 1 (0.1%) 8 (0.0%) 8.0
qal21 4 (0.2%) 6 (0.0%) 1.5
kstenger 4 (0.2%) 4 (0.0%) 1.0
buzzsawddog 2 (0.1%) 4 (0.0%) 2.0
rjtanner 1 (0.1%) 1 (0.0%) 1.0

Most Recent Commits

partmedia 2020-04-13 01:00 Rev.: 21204

Prune removed objects from last_skill_ob

Skill objects can apparently be removed, but will remain on the
last_skill_ob list. This causes NULL dereferences when they are used.

8 lines of code changed in 1 file:

  • server/trunk/common: living.c (+8)
partmedia 2020-04-02 16:21 Rev.: 21203

Refactor with find_applied_skill_by_name()

While here, warn instead of crashing when last_skill_ob[i]->skill is
NULL. It is not yet clear why that happens.

24 lines of code changed in 1 file:

  • server/trunk/common: living.c (+24 -7)
partmedia 2020-03-20 19:28 Rev.: 21180

Make else exclusive

1 lines of code changed in 1 file:

  • server/trunk/common: loader.l (+1 -2)
partmedia 2020-03-20 19:28 Rev.: 21179

Generate batch scanner for more performance

1 lines of code changed in 1 file:

  • server/trunk/common: Makefile.am (+1 -1)
ryo_saeba 2020-03-18 13:28 Rev.: 21178

Remove unused function.

0 lines of code changed in 1 file:

  • server/trunk/common: map.c (-25)
akirschbaum 2020-03-14 16:40 Rev.: 21174

Remove unused code

0 lines of code changed in 2 files:

  • server/trunk/common: init.c (-1), treasure.c (-2)
akirschbaum 2020-03-14 16:22 Rev.: 21173

Create proper objects in create_archetype()

1 lines of code changed in 1 file:

  • server/trunk/common: arch.c (+1)
partmedia 2020-03-14 15:09 Rev.: 21172

Make inline

3 lines of code changed in 1 file:

  • server/trunk/common: object.c (+3 -3)
akirschbaum 2020-03-14 14:45 Rev.: 21170

Make it a fatal error if the empty_archetype does not exist

2 lines of code changed in 1 file:

  • server/trunk/common: arch.c (+2)
partmedia 2020-03-14 14:06 Rev.: 21168

Convert macros to functions

15 lines of code changed in 1 file:

  • server/trunk/common: object.c (+15 -11)
partmedia 2020-03-14 14:06 Rev.: 21167

Un-nest else

15 lines of code changed in 1 file:

  • server/trunk/common: object.c (+15 -18)
partmedia 2020-03-14 14:06 Rev.: 21166

Improve StringBuffer allocation policy

A new StringBuffer is created for every object written or swapped.
Increasing the initial size from 256 to 512 drastically reduces the
likelihood that save_object() needs to realloc().

Change growth rate from linear (+256) to geometric (1.5x).

15 lines of code changed in 1 file:

  • server/trunk/common: stringbuffer.c (+15 -7)
partmedia 2020-03-14 02:47 Rev.: 21165

Make find_insert_pos() much faster

When loading a map, this function used to take O(n^2). It searched
through all objects on a tile until it found the top. If INS_MAP_LOAD is
set, it throws away the result and uses the invariant GET_MAP_TOP. If
INS_ABOVE_FLOOR_ONLY is set, it throws that result away and uses the
floor it found earlier.

During map load, it is really INS_ON_TOP that matters. In that case,
check for that flag first and return immediately using the invariant,
without doing the O(n) search. Otherwise, do the search and return the
topmost floor or the topmost free space.

Since players like to put their things in large piles, this change
drastically reduces the time taken to load maps like player apartments.

5 lines of code changed in 1 file:

  • server/trunk/common: object.c (+5 -7)
partmedia 2020-03-14 02:47 Rev.: 21164

Refactor logic into separate function

39 lines of code changed in 1 file:

  • server/trunk/common: object.c (+39 -39)
partmedia 2020-03-14 02:47 Rev.: 21163

Do less work with INS_MAP_LOAD

21 lines of code changed in 1 file:

  • server/trunk/common: object.c (+21 -21)
partmedia 2020-03-14 02:13 Rev.: 21162

Add profiling for load_objects()

6 lines of code changed in 1 file:

  • server/trunk/common: map.c (+6)
partmedia 2020-03-14 02:13 Rev.: 21161

Add profiling macros

16 lines of code changed in 1 file:

  • server/trunk/common: map.c (+16 -10)
akirschbaum 2020-03-13 14:06 Rev.: 21159

Fix some crashes caused by accesses to missing archetypes

12 lines of code changed in 2 files:

  • server/trunk/common: object.c (+6 -1), readable.c (+6 -3)
partmedia 2020-03-13 12:58 Rev.: 21154

Use strlcpy() instead of snprintf()

22 lines of code changed in 9 files:

  • server/trunk/common: artifact.c (+1 -1), init.c (+1 -1), item.c (+4 -4), map.c (+6 -6), path.c (+3 -3), player.c (+2 -2), readable.c (+2 -2), recipe.c (+2 -2), utils.c (+1 -1)
ryo_saeba 2020-03-11 15:52 Rev.: 21149

Fix uninitialized value.

1 lines of code changed in 1 file:

  • server/trunk/common: anim.c (+1)
partmedia 2020-03-11 14:08 Rev.: 21146

Profile mapfile_load() and save_map()

14 lines of code changed in 1 file:

  • server/trunk/common: map.c (+14 -1)
partmedia 2020-03-11 14:08 Rev.: 21145

Make timespec_diff() available to other files

1 lines of code changed in 1 file:

  • server/trunk/common: time.c (+1 -1)
partmedia 2020-03-05 01:35 Rev.: 21133

Fix source distribution

1 lines of code changed in 1 file:

  • server/trunk/common: Makefile.am (+1 -1)
partmedia 2020-03-04 21:56 Rev.: 21130

Move apply event hook from apply_manual() to ob_apply()

Some code paths call ob_apply() directly without going through
apply_manual(). In these cases, the apply event hook is not run.

7 lines of code changed in 1 file:

  • server/trunk/common: ob_methods.c (+7 -1)
ryo_saeba 2020-03-02 14:42 Rev.: 21124

Allow multiple skills to share the same subtype.
This is useful for skills like harvesting (fishing, mining, and such) which work similarly and only differ in the skill.
As a side-effect, skill_names is no more indexed by the skill's subtype.

14 lines of code changed in 2 files:

  • server/trunk/common: living.c (+1 -1), player.c (+13 -9)
ryo_saeba 2020-02-26 16:45 Rev.: 21120

Use function instead of directly changing last_skill_ob.

1 lines of code changed in 1 file:

  • server/trunk/common: living.c (+1 -2)
ryo_saeba 2020-02-26 16:44 Rev.: 21119

Move function to common library.

26 lines of code changed in 1 file:

  • server/trunk/common: player.c (+26)
ryo_saeba 2020-02-26 15:28 Rev.: 21118

Fix comment.

1 lines of code changed in 1 file:

  • server/trunk/common: player.c (+1 -1)
silvernexus 2019-12-29 20:47 Rev.: 21075

Reduce severity of artifacts lacking a random chance to debug.
This should be possible and may not be in error.

1 lines of code changed in 1 file:

  • server/trunk/common: artifact.c (+1 -1)
partmedia 2019-12-28 08:28 Rev.: 21068

Stop another warning about magic items without inventory

2 lines of code changed in 1 file:

  • server/trunk/common: item.c (+2 -5)
partmedia 2019-12-27 20:50 Rev.: 21067

Send weight update after object_decrease_nrof()

This fixes bugs/804, where eating food out of a container in the
player's inventory doesn't update the displayed container weight.

2 lines of code changed in 1 file:

  • server/trunk/common: object.c (+2)
partmedia 2019-12-26 22:12 Rev.: 21061

Stop warning about magic items without inventory

Some magical items like horn bases are not associated with a spell.

2 lines of code changed in 1 file:

  • server/trunk/common: item.c (+2 -5)
silvernexus 2019-12-03 19:03 Rev.: 21047

Reduce recursion in set_wall()

11 lines of code changed in 1 file:

  • server/trunk/common: los.c (+11 -3)
silvernexus 2019-12-01 20:34 Rev.: 21046

Move a continue statement that would trigger on all loop passes to outer loop.

4 lines of code changed in 1 file:

  • server/trunk/common: los.c (+4 -4)
silvernexus 2019-12-01 13:34 Rev.: 21045

Fix missed adjustment of clear_los parameter.

1 lines of code changed in 1 file:

  • server/trunk/common: los.c (+1 -1)
silvernexus 2019-12-01 12:11 Rev.: 21043

Trivial changes of object * to player * in los calculations.

22 lines of code changed in 1 file:

  • server/trunk/common: los.c (+22 -26)
partmedia 2019-11-27 18:16 Rev.: 21031

Refactor save_object()

Split save_object() into a version that only stores the object string in
a StringBuffer. This allows future code that stores objects in places
other than map files.

47 lines of code changed in 1 file:

  • server/trunk/common: object.c (+47 -48)
partmedia 2019-08-31 11: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.

3 lines of code changed in 1 file:

  • server/trunk/common: time.c (+3 -11)
partmedia 2019-08-31 11:14 Rev.: 20988

Refactor game loop

16 lines of code changed in 1 file:

  • server/trunk/common: time.c (+16 -8)
partmedia 2019-08-30 01:08 Rev.: 20986

Show correct drain message on death

1 lines of code changed in 1 file:

  • server/trunk/common: living.c (+1 -1)

(887 more)

Generated by StatSVN 0.7.0