TFE
| 3191 | |
| 3192 | // TFE |
| 3193 | void player_warp(const ConsoleArgList& args) |
| 3194 | { |
| 3195 | if (args.size() < 4) { return; } |
| 3196 | fixed16_16 x = floatToFixed16(TFE_Console::getFloatArg(args[1])); |
| 3197 | fixed16_16 y = -floatToFixed16(TFE_Console::getFloatArg(args[2])); |
| 3198 | fixed16_16 z = floatToFixed16(TFE_Console::getFloatArg(args[3])); |
| 3199 | RSector* sector = sector_which3D(x, y, z); |
| 3200 | |
| 3201 | if (sector) |
| 3202 | { |
| 3203 | s_playerObject->posWS = { x, y, z }; |
| 3204 | s_playerPos = s_playerObject->posWS; |
| 3205 | |
| 3206 | sector_addObject(sector, s_playerObject); |
| 3207 | s_playerSector = s_playerObject->sector; |
| 3208 | } |
| 3209 | } |
| 3210 | |
| 3211 | void player_sector(const ConsoleArgList& args) |
| 3212 | { |
nothing calls this directly
no test coverage detected