Skip to content

Commit 8470f53

Browse files
committed
Fix typos
1 parent 405e614 commit 8470f53

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void CCharacter::Tick()
173173
## the idea
174174

175175
Have a well defined api for server side teeworlds bots:
176-
- ~~It should be easy to setup (less than 10 lines of code in mostly one place).~~ **UPDATE:** this goal had to be sacraficed for hot reload and state support
176+
- ~~It should be easy to setup (less than 10 lines of code in mostly one place).~~ **UPDATE:** this goal had to be sacrificed for hot reload and state support
177177
- It should be highly portable and work in basically any teeworlds or ddnet code base.
178178
- It should be highly debuggable via logging.
179179
- It should be highly debuggable via visual feedback (api for drawing text and lines at coordinates)
@@ -218,12 +218,12 @@ void CCharacter::OnTick()
218218
}
219219
```
220220

221-
The api promises that it does never keep any internal state accross ticks.
221+
The api promises that it does never keep any internal state across ticks.
222222
All the state it needs can be extracted from the world.
223223
The api operates on a per tick level. With one input and one output.
224224
There is no IO or any other side effects happening in the api.
225225

226-
These limitations make developing bots a bit more tricky. But it allows to fullfill all the goals.
226+
These limitations make developing bots a bit more tricky. But it allows to fulfill all the goals.
227227
It allows for better portability. It allows for clean unit test setups. And it allows to hot reload without breaking state.
228228

229229
## implementation details debuggability via logging
@@ -269,7 +269,7 @@ This ensures that you can always obtain the "why" for the current state. And als
269269
## implementation details debuggability via visual feedback (api for drawing text and lines at coordinates)
270270
271271
An implementation of a twbl bot should be able to give visual feedback in addition to logging for debugging.
272-
There should be a well defined api similiar to the logging one that allows for the twbl bot code to draw lines.
272+
There should be a well defined api similar to the logging one that allows for the twbl bot code to draw lines.
273273
And render text at certain locations. Or render colored simple shapes such as recentangles.
274274
It is then up to the implementation consuming the twbl bot to actually do the drawing.
275275
This requires writing some code but it is a optional feature if not implemented the bot will still work the same so that is fine.

src/twbl/hotreload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void *CHotreloader::LoadTick(FTwbl_BotTick *ppfnBotTick)
7878
// else
7979
// {
8080
// fprintf(stderr, "[twbl] Error: ignore this error if it is only printed once.\n");
81-
// fprintf(stderr, "[twbl] Error: twbl no privious handle found for %s\n", pFilename);
81+
// fprintf(stderr, "[twbl] Error: twbl no previous handle found for %s\n", pFilename);
8282
// fprintf(stderr, "[twbl] Error: make sure to not recreate the hotreload object. Use static or member variables.\n");
8383
// }
8484

src/twbl/teeworlds/base/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <cstdlib>
22
#if __has_include(<base/system.h>)
3-
// TODO: find a better conditon than having the file base/system.h
3+
// TODO: find a better condition than having the file base/system.h
44
// this is a polyfill of system.cpp when compiled as external library
55
// so standalone tests can use things like dbg_msg()
66
#else

0 commit comments

Comments
 (0)