mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
Add comment to lib_gFindMap so I know what the fuck I did
This commit is contained in:
parent
a4149cfe37
commit
bcd90b96d4
1 changed files with 25 additions and 0 deletions
|
@ -2802,6 +2802,31 @@ Lpushdim (lua_State *L, int c, struct searchdim *v)
|
|||
I decided to make this return a table because userdata
|
||||
is scary and tables let the user set their own fields.
|
||||
*/
|
||||
/*
|
||||
Returns:
|
||||
|
||||
[1] => map number
|
||||
[2] => map title
|
||||
[3] => search frequency table
|
||||
|
||||
The frequency table is unsorted. It has the following format:
|
||||
|
||||
{
|
||||
['mapnum'],
|
||||
|
||||
['matchd'] => matches in map title string
|
||||
['keywhd'] => matches in map keywords
|
||||
|
||||
The above two tables have the following format:
|
||||
|
||||
{
|
||||
['pos'] => offset from start of string
|
||||
['siz'] => length of match
|
||||
}...
|
||||
|
||||
['total'] => the total matches
|
||||
}...
|
||||
*/
|
||||
static int lib_gFindMap(lua_State *L)
|
||||
{
|
||||
const char *query = luaL_checkstring(L, 1);
|
||||
|
|
Loading…
Reference in a new issue