Opened 8 years ago

Closed 7 years ago

#1706 closed change (fixed (in master))

Refactor messy monster energy calculation

Reported by: daniel.santos Owned by:
Milestone: 3.5.0 Keywords:


There is a lot of copy & paste code which is bad -- it bloats both the
source code & generated object code. This chance reduces source bloat,
as well as generated code, as long as the compiler doesn't decide that
that adj_energy is a candidate for inlining. This can be prevented with
a compiler-specific noinline modifier, but there's currently no support
for sniffing the compiler & such.

Attachments (1)

0002-Refactor-messy-monster-energy-calculation.txt (4.3 KB) - added by daniel.santos 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by daniel.santos

comment:1 Changed 7 years ago by takkaria

  • Milestone changed from Triage to 3.5.0
  • Resolution set to fixed (in master)
  • Status changed from new to closed

Thanks, modified patch used in 5cfd509, now in master. Closing as fixed.

Note: See TracTickets for help on using tickets.