-
1) Simplify (and make slightly more efficient) some code by using strdup() instead of malloc()/strncpy().
2) Fix an off by one error that existed with the use of strncpy(). The third argument must be the buffer size minus 1. The value provided was the full buffer size.
3) Fix a smelling error in a comment.
4) Remove an unnecessary check before calling free() since free(NULL) is safe.
2009-11-10 04:25:29 UTC by russellbryant
-
This patch improves a small piece of code by removing an unnecessary memory allocation.
2009-11-10 04:18:58 UTC by russellbryant
-
bullet_catcher committed revision 20682 to the BZFlag - Multiplayer 3D Tank Game SVN repository, changing 1 files.
2009-11-07 19:31:48 UTC by bullet_catcher
-
This patch addresses two things with the pthread version of screenshot thread creation:
1) The use of pthread_mutex_init() here is unnecessary since the mutex is already statically initialized.
2) The thread is created but never joined. Since threads are joinable by default, this results in a memory leak. There will be some system resources that persist while waiting for the application...
2009-11-07 17:44:59 UTC by russellbryant
-
bthansen committed revision 20681 to the BZFlag - Multiplayer 3D Tank Game SVN repository, changing 1 files.
2009-11-05 20:32:44 UTC by bthansen
-
I double checked an found the player id was not my LAN IP, it was my router's LAN IP so I'm going with what blast told me and blame the router.
2009-10-28 23:16:14 UTC by runic
-
fyi an easy way around this is to use shift instead of position inside a group.
2009-10-28 19:15:20 UTC by runic
-
I tried serving one of my maps on BZFS 2.99 r20678 and found some defined group objects were not positioned correctly
this worked:
group myobject1
position -320 0 0
spin 90 0 0 1
shift -24.9 0 42.53
end
but this one did not - end up @ position 0 0 0
group myobject2
position 0 -320 0 0
spin 90 0 0 1
shift -24.9 0 42.53
end
when I saved the map via the client...
2009-10-28 19:12:10 UTC by runic
-
when running both client and server on same machine,
I get kicked when I shoot, (MsgShotBegin)
the message "Your end is not using UDP. Turn on UDP on your firewall or router." is shown.
But is not correct as I had both TCP and UDP enabled in my router
the message is from the handleTCP function in bzfs.cxx
This only happens when I log into the server using the public address, if I use...
2009-10-28 18:59:11 UTC by runic
-
daxxar committed revision 20680 to the BZFlag - Multiplayer 3D Tank Game SVN repository, changing 2 files.
2009-10-26 01:24:49 UTC by daxxar