[Fix] Clearing out some warning that I allowed to slip in.

This commit is contained in:
Allanis 2013-02-26 17:48:47 +00:00
parent 6cad2ac40e
commit a10931b7b6
8 changed files with 14 additions and 54 deletions

View File

@ -1,45 +0,0 @@
--WINDOW.
width = 1024
height = 768
fullscreen = 0
-- SCREEN.
fps = 0
-- SOUND.
nosound = 0
sound = 1.
music = 1.
-- JOYSTICK.
-- Can be number or substring of joystick name.
joystick = "Precision"
-- KEYBINDINGS.
-- Type can be keyboard, jaxis or jbutton.
--
-- If left is an axis, it will automatically set right to the same axis.
-- setting both to the same axis (key).
-- You can use reverse = 1 option to reverse them.
-- Movement.
accel = { type = "jbutton", key = 0 }
left = { type = "jaxis", key = 0 }
right = { type = "jaxis", key = 0 }
-- Combat.
primary = { type = "jbutton", key = 1 }
target = { type = "jbutton", key = 4 }
target_nearest = { type = "jbutton", key = 3 }
face = { type = "keyboard", key = 38 }
board = { type = "keyboard", key = 57 }
secondary = { type = "jbutton", key = 7 }
secondary_next = { type = "jbutton", key = 5 }
-- Space.
-- Gui.
mapzoomin = { type = "jbutton", key = 4 }
mapzoomout = { type = "jbutton", key = 6 }
screenshot = { type = "keyboard", key = 82 }

View File

@ -179,7 +179,7 @@ int gl_printMid(const glFont* ft_font, const int width, double x, const double y
int gl_printText(const glFont* ft_font, const int width, const int height,
double bx, double by, glColour* c, const char* fmt, ...) {
float h = ft_font->h / .63; // Slightly increase font size.
//float h = ft_font->h / .63; // Slightly increase font size.
char txt[1024];
char buf[128];
va_list ap;

View File

@ -14,7 +14,7 @@ extern glFont gl_smallFont; // Small font.
// glFont loading/freeing.
// If font is NULL it uses the internal default font, same with gl_print
void glFontInit(glFont* font, const char* fname, const unsigned int h);
void gl_fontInit(glFont* font, const char* fname, const unsigned int h);
void gl_freeFont(glFont* font);
// Print text.

View File

@ -1,5 +1,4 @@
#include "toolkit.h"
#include "pause.h"
#include "player.h"
#include "rng.h"
#include "music.h"
@ -104,6 +103,7 @@ void land(Planet* p) {
// Change music.
music_load(MUSIC_LAND);
music_play();
planet = p;
land_wid = window_create(p->name, -1, -1, LAND_WIDTH, LAND_HEIGHT);

View File

@ -44,6 +44,7 @@ static char version[VERSION_LEN];
#define DATA_NAME_LEN 25 // Max length of data name.
char* data = NULL;
char dataname[DATA_NAME_LEN];
int nosound = 0;
int show_fps = 1; // Default - True.
int max_fps = 0;
int indjoystick = -1;
@ -109,9 +110,13 @@ int main(int argc, char** argv) {
window_caption();
// OpenAL sound.
if(nosound)
LOG("Sound is disabled!");
else {
if(sound_init()) WARN("Problem setting up sound!");
music_load("Machina");
music_play();
}
// Input.
if((indjoystick >= 0) || (namjoystick != NULL)) {

View File

@ -239,7 +239,7 @@ static Outfit* outfit_parse(const xmlNodePtr parent) {
MELEMENT(tmp->name==NULL, "name");
MELEMENT(tmp->max==0, "max");
MELEMENT(tmp->tech==0, "tech");
MELEMENT(tmp->mass==0, "mass");
// MELEMENT(tmp->mass==0, "mass");
MELEMENT(tmp->type==0, "type");
#undef MELEMENT

View File

@ -33,7 +33,7 @@
Pilot* player = NULL; // extern in pilot.h
// Player global properties.
char* player_name = NULL; // Player name.
unsigned int credits = NULL; // Ze monies.
unsigned int credits = 0; // Ze monies.
unsigned int combat_rating = 0; // Ze rating.
unsigned int player_flags = 0; // Player flags.
// Input.c

View File

@ -230,7 +230,7 @@ void ships_free(void) {
// Used to visualize the ships status.
void ship_view(char* shipname) {
Ship* s;
Ship* s = NULL;
char buf[1024];
unsigned int wid;
wid = window_create(shipname, -1, -1, VIEW_WIDTH, VIEW_HEIGHT);