diff --git a/dat/ship.xml b/dat/ship.xml index e657d1c..8a9231e 100644 --- a/dat/ship.xml +++ b/dat/ship.xml @@ -25,13 +25,13 @@ <outfits> <outfit quantity='2'>laser</outfit> </outfits> - </ship> + </ship> <ship name="Miss. Test"> <GFX>enemyship.png</GFX> <class>1</class> <movement> <thrust>180</thrust> - <turn>100</turn> + <turn>360</turn> <speed>260</speed> </movement> <health> diff --git a/gfx/enemyship.png b/gfx/enemyship.png deleted file mode 100644 index 2d45128..0000000 Binary files a/gfx/enemyship.png and /dev/null differ diff --git a/gfx/ship.png b/gfx/ship.png deleted file mode 100644 index 4c845ef..0000000 Binary files a/gfx/ship.png and /dev/null differ diff --git a/src/ai.c b/src/ai.c index 1b049e1..ad2d5de 100644 --- a/src/ai.c +++ b/src/ai.c @@ -255,7 +255,7 @@ static int ai_face(lua_State* L) { if(lua_isnumber(L,1)) v = &get_pilot((unsigned int)lua_tonumber(L,1))->solid->pos; else if(lua_islightuserdata(L,1)) v = (Vec2*)lua_topointer(L,1); - double mod; + double mod = 10; if(lua_gettop(L) > 1 && lua_isnumber(L,2)) switch((int)lua_tonumber(L,2)) { case 1: mod *= -1; break; diff --git a/src/pilot.c b/src/pilot.c index 7256c4a..7e3b484 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -73,7 +73,7 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const Vec2* vel, const Vec pilot->id = ++pilot_id; // New unique pilot id based on pilot_id, Can't be 0. pilot->ship = ship; - pilot->name = strdup((name == NULL) ? ship->name:name); + pilot->name = strdup((name == NULL) ? ship->name : name); pilot->solid = solid_create(ship->mass, vel, pos);