Opened 10 years ago

Closed 10 years ago

#60 closed change (fixed (in master))

Simplify the code for timed player effects

Reported by: takkaria Owned by: takkaria
Milestone: 3.0.8 Keywords:
Cc:

Description

xtra2.c contains too much repeated code, so unify it as much as possible.

To fix:

  1. Turn timed player effects into an array
  2. Unify access functions, using a table of {effect} -> {message, flags}
  3. Simplify some more by adding inc_, dec_, and clear_ functions for the most common use cases.

Already done for the most part. Messy; should this be in 3.0.8?

Attachments (1)

script.sed (2.3 KB) - added by takkaria 10 years ago.
sed script to perform replacements, run using `sed -i script.sed *.c"

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by takkaria

sed script to perform replacements, run using `sed -i script.sed *.c"

comment:1 Changed 10 years ago by takkaria

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [b95c26a] (SVN r24).

Note: See TracTickets for help on using tickets.