forked from github/server
kleine Beschleunigung in lastregion, evtl. vernachlässigbar..
This commit is contained in:
parent
0f2f7f7b62
commit
44faa4e2fd
|
@ -1865,8 +1865,8 @@ region *
|
|||
lastregion (faction * f)
|
||||
{
|
||||
region *r = f->last;
|
||||
if (!r && f->units) {
|
||||
for (r = firstregion(f); r; r = r->next) {
|
||||
if (r==NULL && f->units!=NULL) {
|
||||
for (r = f->units->region; r; r = r->next) {
|
||||
plane * p = rplane(r);
|
||||
unit *u;
|
||||
attrib *ru;
|
||||
|
|
|
@ -84,7 +84,7 @@ a_select(attrib * a, const void * data, boolean(*compare)(const attrib *, const
|
|||
}
|
||||
|
||||
attrib *
|
||||
a_find(attrib * a, const attrib_type * at)
|
||||
a_find(attrib * a, const attrib_type * at)
|
||||
{
|
||||
while (a && a->type!=at) a = a->next;
|
||||
return a;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define NRT_MAXHASH 256
|
||||
#define NRT_MAXHASH 1023
|
||||
static nrmessage_type * messagetypes[NRT_MAXHASH];
|
||||
|
||||
const char *
|
||||
|
|
Loading…
Reference in New Issue