Package: alex4 / 1.1-8

Metadata

Package Version Patches format
alex4 1.1-8 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
unix port.patch | (download)

src/Makefile | 24 24 + 0 - 0 !
src/actor.h | 2 1 + 1 - 0 !
src/bullet.h | 2 1 + 1 - 0 !
src/edit.h | 2 1 + 1 - 0 !
src/hisc.h | 2 1 + 1 - 0 !
src/main.c | 123 102 + 21 - 0 !
src/main.h | 5 4 + 1 - 0 !
src/map.c | 86 77 + 9 - 0 !
src/map.h | 2 1 + 1 - 0 !
src/options.h | 2 1 + 1 - 0 !
src/particle.h | 2 1 + 1 - 0 !
src/player.h | 2 1 + 1 - 0 !
src/script.h | 2 1 + 1 - 0 !
src/scroller.h | 2 1 + 1 - 0 !
src/shooter.c | 2 1 + 1 - 0 !
src/shooter.h | 6 3 + 3 - 0 !
src/timer.c | 2 1 + 1 - 0 !
src/timer.h | 2 1 + 1 - 0 !
src/token.c | 2 1 + 1 - 0 !
src/token.h | 2 1 + 1 - 0 !
src/unix.c | 87 87 + 0 - 0 !
src/unix.h | 6 6 + 0 - 0 !
22 files changed, 318 insertions(+), 49 deletions(-)

 support unix-like operating systems.
 Based on Hans de Goede's patch for Fedora. 
dot files endian clean.patch | (download)

src/control.c | 18 16 + 2 - 0 !
src/hisc.c | 14 10 + 4 - 0 !
src/options.c | 18 16 + 2 - 0 !
3 files changed, 42 insertions(+), 8 deletions(-)

 save the game's dotfiles in an endian-independent way.
save some cpu cycles.patch | (download)

src/main.c | 55 32 + 23 - 0 !
src/script.c | 11 6 + 5 - 0 !
src/shooter.c | 9 4 + 5 - 0 !
3 files changed, 42 insertions(+), 33 deletions(-)

 fix the 100% cpu usage of alex4.
 Fix the 100% CPU usage of alex4. We can't do this properly (the game
 is written with a DOS mindset), but we can do two things easily:
 - Put a rest() in every busy loop.
 - Limit the frame rate to 50Hz (the speed of the game logic).
 .
 For future reference, the counters used by the game:
 game_count  = increments at 50Hz
 cycle_count = increments at 50Hz, but is reset whenever the game feels like it
 frame_count = number of frames rendered, reset every second
 logic_count = number of game loops processed, reset every second
allegro 4.2.patch | (download)

src/edit.c | 22 11 + 11 - 0 !
src/hisc.c | 6 3 + 3 - 0 !
src/main.c | 50 24 + 26 - 0 !
src/map.c | 10 5 + 5 - 0 !
src/script.c | 2 1 + 1 - 0 !
src/scroller.c | 14 7 + 7 - 0 !
src/shooter.c | 6 3 + 3 - 0 !
7 files changed, 54 insertions(+), 56 deletions(-)

 get rid of deprecated allegro functions.
fsf address.patch | (download)

readme.txt | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 correct the fsf's address.
compiler warnings.patch | (download)

src/defs.h | 12 12 + 0 - 0 !
src/edit.c | 2 1 + 1 - 0 !
src/edit.h | 2 1 + 1 - 0 !
src/hisc.c | 2 1 + 1 - 0 !
src/hisc.h | 2 1 + 1 - 0 !
src/main.c | 30 15 + 15 - 0 !
src/main.h | 6 3 + 3 - 0 !
src/map.c | 2 1 + 1 - 0 !
src/map.h | 2 1 + 1 - 0 !
src/particle.c | 4 2 + 2 - 0 !
src/shooter.c | 2 1 + 1 - 0 !
src/timer.c | 4 2 + 2 - 0 !
src/token.c | 4 2 + 2 - 0 !
src/token.h | 2 1 + 1 - 0 !
14 files changed, 44 insertions(+), 32 deletions(-)

 fix some compiler warnings.
 - mark a couple of function parameters as unused
 - remove a couple of unused function parameters
 - remove a couple of stray semicolons outside of functions
 - define _XOPEN_SOURCE for strdup(3)
 - constify a couple of character pointers
 - replace some int -> float casts with a multiplication by 1.0
hardening.patch | (download)

src/map.c | 84 55 + 29 - 0 !
src/shooter.c | 3 2 + 1 - 0 !
2 files changed, 57 insertions(+), 30 deletions(-)

 harden the build.
 - check the fread() and fwrite() return values
 - swap a return and an fclose()
 - fix an undefined order of operations problem
fix_building_with_fix_versions.patch | (download)

src/main.c | 6 3 + 3 - 0 !
src/shooter.c | 10 5 + 5 - 0 !
2 files changed, 8 insertions(+), 8 deletions(-)

---