Age | Commit message (Collapse) | Author |
|
it is redundant in thus inconvenient to repeat 'position' inside a
structure named position.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
many structures or positions were not revelant anymore and thus have
been removed.
some positions were not relative to each other
it is sometimes not meaningful to put surfaces in the global scope when
they only need to be used once.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
the fonts (actually the font) is opened at startup and closed at
shutdown.
This fixes possible crashes during the game if a font file is
removed/moved.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
The initialized surfaces are converted to display format so that they
are ready for fastblit.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we do not split the code of the selection of a target anymore.
Each action now does a very simple thing and as much efficiently as
possible.
every old function that are not used anymore have been removed.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
entries are actually any action or subaction that can be performed.
Attack, White Magic and so on are root actions.
Fire, Ice X are subactions of Black Magic.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we used to loop through the elements in our outer loop and the
affinities in the inner one.
However since, the display is done line by line, we have to do the
contrary.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
the wrong surface was set to NULL after being freed. It could result in
an crash if it is not fixed.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
it is safe to pass a null pointer to SDL_FreeSurface()
BTW: change the format of the files from dos to unix
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|