Skip to content

Commit

Permalink
Fix GetSoundDevices lua docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-vdw authored and lhog committed Feb 9, 2025
1 parent b21ac44 commit 095b4a4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions rts/Lua/LuaUnsyncedRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ int LuaUnsyncedRead::GetUnitsInScreenRectangle(lua_State* L)
}

// Even though we're in unsynced it's ok to use gs->tempNum since its exact value
// doesn't matter
// doesn't matter
const int tempNum = gs->GetTempNum();
lua_createtable(L, unitQuadIter.GetObjectCount(), 0);

Expand Down Expand Up @@ -3103,20 +3103,19 @@ int LuaUnsyncedRead::GetDrawSeconds(lua_State* L)
* @section sound
******************************************************************************/

/*** Sound device spec
*
* @table soundDeviceSpec
/***
* @class SoundDeviceSpec
*
* Contains data about a sound device
* Contains data about a sound device.
*
* @string name
* @field name string
*/


/***
*
* @function Spring.GetSoundDevices
* @return {[soundDeviceSpec],...} devices Sound devices
* @return SoundDeviceSpec[] devices Sound devices.
*/
int LuaUnsyncedRead::GetSoundDevices(lua_State* L)
{
Expand Down

0 comments on commit 095b4a4

Please sign in to comment.