Permalink
Browse files

Useless tweaks

  • Loading branch information...
1 parent 5526754 commit 62de6ca27d378966a10625c88c73f0e7700c9fe3 @Detegr committed Sep 4, 2012
Showing with 6 additions and 7 deletions.
  1. +2 −2 ConnectionManager.cpp
  2. +2 −3 client.cpp
  3. +2 −2 server.cpp
View
@@ -92,11 +92,11 @@ void C_ConnectionPool::M_SendToAll(C_UdpSocket& sock, C_Packet& p) const
b2Body* body=c->M_GetEntity()->M_Body();
b2Vec2 pos=body->GetPosition();
float angle=body->GetAngle();
- float speed=10.0f;
+ float speed=20.0f;
b2Vec2 newv(-sin(angle), cos(angle));
newv*=speed;
b2Vec2 align=b2Vec2(-sin(angle), cos(angle));
- align*=0.2;
+ //align*=0.2;
pos+=align;
b->M_Body()->SetTransform(pos, 0.0f);
b->M_Body()->SetLinearVelocity(newv);
View
@@ -62,11 +62,11 @@ int main()
#ifdef _WIN32
C_SocketInitializer si;
#endif
- C_IpAddress ip("localhost");
+ C_IpAddress ip("127.0.0.1");
C_UdpSocket sock(ip, 51119);
if(!M_DoConnection(sock))
{
- std::cerr << "Failed to connect to" << ip << "!" << std::endl;
+ std::cerr << "Failed to connect to " << ip << "!" << std::endl;
C_Singleton::M_DestroySingletons();
return 1;
}
@@ -91,7 +91,6 @@ int main()
{
if(sock.M_Receive(p, 0, NULL, NULL))
{
- std::cout << p.M_Size() << std::endl;
idt.M_Reset();
C_Packet keys;
keyvec=getkeys();
View
@@ -49,7 +49,7 @@ int main()
float x=-1.0f;
float y=0.6f;
- float size=0.05f;
+ float size=0.08f;
int rows=4;
for(int j=0; j<rows; ++j)
{
@@ -60,7 +60,7 @@ int main()
x+=0.15f;
boxes.push_back(b);
}
- size-=0.005f;
+ size-=0.015f;
y-=2.0f/rows;
}

0 comments on commit 62de6ca

Please sign in to comment.