Play the current demo
Pause the current demo
Slow down the demo
Speed up the demo
Slice the beginning of a cut
Slice the beginning of a cut
Export cut as a separate demo
Toggle keyboard shortcuts
1 new mention
function in the editor, to communicate a bit more.
Like, saying if you saved a map, or something else.inp_mousesens
и поменяй третье числовое значение на какое тебе душе угодно, я не думаю, что это тебе сильно поможет, но ладно(int)(x + 0.5)
round_to_int
was as in round to the integer part of the floatround_to_int(2.9f) == (int)2.9f == 2
round_to_int
apparently rounds to the closest whole integer#include <stdio.h>
void read_line(char *arr, int size)
{
char *p = arr;
char c;
while ((p - arr) < size && (c = getchar()) != '\n' && c != EOF)
*p++ = c;
*p = 0x0;
}
int main(void)
{
char buf[10] = { 0x0 };
read_line(buf, sizeof(buf));
printf("%s\n", buf);
}
(edited)#include <stdio.h>
void read_line(char *arr, int size)
{
char *p = arr;
char c;
while ((p - arr) < size && (c = getchar()) != '\n' && c != EOF)
*p++ = c;
*p = 0x0;
}
int main(void)
{
char buf[10] = { 0x0 };
read_line(buf, sizeof(buf));
printf("%s\n", buf);
}
(edited)#include <stdio.h>
void read_line(char *arr, int size)
{
char *p = arr;
char c;
while ((p - arr) < size && (c = getchar()) != '\n' && c != EOF)
*p++ = c;
*p = 0x0;
}
int main(void)
{
char buf[10] = { 0x0 };
read_line(buf, sizeof(buf));
printf("%s\n", buf);
}
(edited)&1 as *const i32
(edited)&1 as *const i32
(edited)int foo(int *p) { *p = 0; if(p) { bingo(); }
will become *p = 0; bingo(); }
int foo(int *p) { *p = 0; if(p) { bingo(); }
will become *p = 0; bingo(); }
use std::borrow::Cow;
fn describe(error: &Error) -> Cow<'static, str> {
match *error {
Error::NotFound => "Error: Not found".into(),
Error::Custom(e) => format!("Error: {}", e).into(),
}
}
use std::borrow::Cow;
fn describe(error: &Error) -> Cow<'static, str> {
match *error {
Error::NotFound => "Error: Not found".into(),
Error::Custom(e) => format!("Error: {}", e).into(),
}
}
c7ddb0a
Pad player demo filename with zeros instead of spaces - Robyt3
8d3351f
Also record tunings for player demos - Robyt3
5c2f162
Remove unused DemoRecorder_IsRecording
method - Robyt3
3f1b702
Fix demos recorded without mapdata not being loadable - Robyt3
63d0c8e
Improve error message when map for demo cannot be found - Robyt3
d369a5b
Write messages to all active demo recorders - Robyt3
6bd1e96
Add demo recorder/player to integration test - Robyt3
67267dd
Merge #5773 - bors[bot]