[Fix?] Changed rotation speed, everyone was bothering me about it, all they needed to do was change it in xml file..

This commit is contained in:
Allanis 2013-02-03 18:47:13 +00:00
parent 7910dac9c3
commit 5b4d184ffc
5 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
<class>1</class> <class>1</class>
<movement> <movement>
<thrust>180</thrust> <thrust>180</thrust>
<turn>100</turn> <turn>360</turn>
<speed>260</speed> <speed>260</speed>
</movement> </movement>
<health> <health>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

View File

@ -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; 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); 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)) if(lua_gettop(L) > 1 && lua_isnumber(L,2))
switch((int)lua_tonumber(L,2)) { switch((int)lua_tonumber(L,2)) {
case 1: mod *= -1; break; case 1: mod *= -1; break;

View File

@ -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->id = ++pilot_id; // New unique pilot id based on pilot_id, Can't be 0.
pilot->ship = ship; 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); pilot->solid = solid_create(ship->mass, vel, pos);