aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
Commit message (Expand)AuthorAge
...
* | Merge branch 'view_bobbing_and_vielded_tool'Perttu Ahola2011-09-26
|\ \
| * | Revert some changes that could lead to slower map transfer and increaed netwo...Kahrl2011-09-16
| * | trying something else... also replaced M_PI by PI everywhereKahrl2011-09-08
| * | Collected and moved existing camera infrastructure from game.cpp to camera.cp...Kahrl2011-09-08
* | | Server user limit configuration optionPerttu Ahola2011-09-26
* | | Merge remote-tracking branch 'darkrose/master'Perttu Ahola2011-09-26
|\ \ \
| * | | added locking chests - clean patchdarkrose2011-09-22
| |/ /
* | / Fixed null pointer dereference errors found by cppcheckJoshua Beck2011-09-24
| |/ |/|
* | Make client report a newer version number to the server than 2011-07-31 does ...Perttu Ahola2011-09-22
|/
* Merge remote-tracking branch 'queatz/furnace-is-not-out-nor-can-rat-escape'Perttu Ahola2011-08-30
|\
| * Merged 2 branches because they relied on each other.JacobF2011-08-25
* | If a user doesn't have build rights, don't allow them to move items to and fr...JacobF2011-08-23
|/
* if creative mode and player has no build privileges, cannot drop items.Perttu Ahola2011-08-22
* Fixed some protocol comment errors in clientserver.h and elsewherePerttu Ahola2011-08-22
* Possibly fixed the extremely rare PeerNotFound loop bug.Perttu Ahola2011-08-22
* Server now supports replies without prefixGiuseppe Bilotta2011-08-22
* Defines for server command context flagsGiuseppe Bilotta2011-08-22
* Remove distinction between /# and / commandsGiuseppe Bilotta2011-08-22
* Implemented MEET_OTHERPerttu Ahola2011-08-16
* Fixed/extended/modified ban stuff to be good for inclusionPerttu Ahola2011-08-12
* added ipban supportConstantin Wenger2011-08-12
* Notify other players of wielded item changeGiuseppe Bilotta2011-08-11
* Clients inform server on wielded itemGiuseppe Bilotta2011-08-11
* Server should use the same eye position as the clientGiuseppe Bilotta2011-08-11
* Fixes a bug that made the server to deny non-empty passwords from players con...Perttu Ahola2011-07-31
* Fixed problem of server always receiving an empty password from the clientPerttu Ahola2011-07-31
* Made stricter handling for old clients because now they are not compatible at...Perttu Ahola2011-07-31
* Fixed handling of inventory in creative mode (normal inventory is not trashed...Perttu Ahola2011-07-30
* fix to the formerPerttu Ahola2011-07-30
* easier notice on old versionPerttu Ahola2011-07-30
* Added network protocol version number in protocolPerttu Ahola2011-07-30
* Server configuration is now written when "/#setting whatever = whatever" is i...Perttu Ahola2011-07-30
* Added message of the day and made it properly configurable using /#setting (n...Perttu Ahola2011-07-30
* Made picking items up in creative mode delete them (because they usually are ...Perttu Ahola2011-07-30
* Rats are now eatable. Also made their selection box move smoothly.Perttu Ahola2011-07-30
* Added a mapblock analyzing function for debugging use and fixed remaining map...Perttu Ahola2011-07-24
* extended content-type rangePerttu Ahola2011-07-23
* Fixed objects being sometimes not able to be stored statically in a block whe...Perttu Ahola2011-07-01
* map unloading is now a whole lot betterPerttu Ahola2011-06-27
* fixed block unloading from memory (a better fix coming next)Perttu Ahola2011-06-26
* Added CPT_FACEDIR_SIMPLE calculation, finally, as figured out by spongiePerttu Ahola2011-06-26
* reorganized a lot of stuff and modified mapgen and objects slightly while doi...Perttu Ahola2011-06-26
* added and commented out some debug outputPerttu Ahola2011-06-26
* even more code refactoringPerttu Ahola2011-06-26
* moved map generator to separate source filesPerttu Ahola2011-06-25
* mapgen stuffPerttu Ahola2011-06-25
* New map generator added (and SQLite, messed up the commits at that time...) (...Perttu Ahola2011-06-25
* Changed MapBlockObjects to be never written anymore. Incremented version number.Perttu Ahola2011-06-18
* Created and moved stuff to content_nodemeta.{h,cpp}Perttu Ahola2011-06-18
* Moved some mapnode content stuff from mapnode.{h,cpp} and digging property st...Perttu Ahola2011-06-17
>->u.l.next = uv->u.l.next; } void luaF_freeupval (lua_State *L, UpVal *uv) { if (uv->v != &uv->u.value) /* is it open? */ unlinkupval(uv); /* remove from open list */ luaM_free(L, uv); /* free upvalue */ } void luaF_close (lua_State *L, StkId level) { UpVal *uv; global_State *g = G(L); while (L->openupval != NULL && (uv = ngcotouv(L->openupval))->v >= level) { GCObject *o = obj2gco(uv); lua_assert(!isblack(o) && uv->v != &uv->u.value); L->openupval = uv->next; /* remove from `open' list */ if (isdead(g, o)) luaF_freeupval(L, uv); /* free upvalue */ else { unlinkupval(uv); setobj(L, &uv->u.value, uv->v); uv->v = &uv->u.value; /* now current value lives here */ luaC_linkupval(L, uv); /* link upvalue into `gcroot' list */ } } } Proto *luaF_newproto (lua_State *L) { Proto *f = luaM_new(L, Proto); luaC_link(L, obj2gco(f), LUA_TPROTO); f->k = NULL; f->sizek = 0; f->p = NULL; f->sizep = 0; f->code = NULL; f->sizecode = 0; f->sizelineinfo = 0; f->sizeupvalues = 0; f->nups = 0; f->upvalues = NULL; f->numparams = 0; f->is_vararg = 0; f->maxstacksize = 0; f->lineinfo = NULL; f->sizelocvars = 0; f->locvars = NULL; f->linedefined = 0; f->lastlinedefined = 0; f->source = NULL; return f; } void luaF_freeproto (lua_State *L, Proto *f) { luaM_freearray(L, f->code, f->sizecode, Instruction); luaM_freearray(L, f->p, f->sizep, Proto *); luaM_freearray(L, f->k, f->sizek, TValue); luaM_freearray(L, f->lineinfo, f->sizelineinfo, int); luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); luaM_freearray(L, f->upvalues, f->sizeupvalues, TString *); luaM_free(L, f); } void luaF_freeclosure (lua_State *L, Closure *c) { int size = (c->c.isC) ? sizeCclosure(c->c.nupvalues) : sizeLclosure(c->l.nupvalues); luaM_freemem(L, c, size); } /* ** Look for n-th local variable at line `line' in function `func'. ** Returns NULL if not found. */ const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { int i; for (i = 0; i<f->sizelocvars && f->locvars[i].startpc <= pc; i++) { if (pc < f->locvars[i].endpc) { /* is variable active? */ local_number--; if (local_number == 0) return getstr(f->locvars[i].varname); } } return NULL; /* not found */ }